From fa805490bd5176c1378f071724ef3dd711ae2afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 10 Aug 2018 11:09:24 +0800 Subject: [PATCH] [Doc] add preview qrcode --- docs/src/Preview.vue | 62 +++++++++++++++++++++++++++++++++++++++----- docs/src/utils.js | 2 -- 2 files changed, 55 insertions(+), 9 deletions(-) diff --git a/docs/src/Preview.vue b/docs/src/Preview.vue index d55e2e77..99734515 100644 --- a/docs/src/Preview.vue +++ b/docs/src/Preview.vue @@ -1,6 +1,12 @@ @@ -48,13 +54,12 @@ export default { window.switchImage = path => { path = path.replace('/', ''); this.currentPage = path; - console.log('currentPage', this.currentPage); }; } }; - diff --git a/docs/src/utils.js b/docs/src/utils.js index 23b8a24a..3cd1107c 100644 --- a/docs/src/utils.js +++ b/docs/src/utils.js @@ -19,9 +19,7 @@ function iframeReady(iframe, callback) { function syncPath(path) { const iframe = document.querySelector('iframe'); - console.log(iframe); iframeReady(iframe, () => { - console.log('ready'); iframe.contentWindow.switchImage(path); }); }