From 1868e629fa81597d4a95db6b67b8748e0f640c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=89=E6=96=8C?= <947164239@qq.com> Date: Fri, 16 Aug 2019 21:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=88=E5=86=8D=E6=94=B9=E7=9C=9F=E7=9A=84=E5=90=83?= =?UTF-8?q?=E5=B1=8E=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/feedback.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/layout/feedback.vue b/src/layout/feedback.vue index c5b26dd..702c4d8 100644 --- a/src/layout/feedback.vue +++ b/src/layout/feedback.vue @@ -39,7 +39,12 @@ import SimpleDrawingBoard from 'simple-drawing-board' import html2canvas from 'html2canvas' export default { - props: ['showDialog'], + props: { + showDialog: { + type: Boolean, + required: true + } + }, data() { return { feedback: { @@ -66,7 +71,7 @@ export default { async loadLibrary() { if (typeof html2canvas === 'undefined') { try { - console.error('html2canvas not import', e.toString()) + console.error('html2canvas not import') } catch (e) { console.error('html2canvas.min.js is missing', e.toString()) return null @@ -100,7 +105,7 @@ export default { }) .catch(e => { this.dataLoading = false - console.log(e) + console.log(e.toString()) }) }) },