From 01053791a0b95be6c6452cfb14b3ed7a2098e57f Mon Sep 17 00:00:00 2001 From: FungLeo Date: Fri, 8 May 2020 11:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20on-error=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BB=A5=E5=8F=8A=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=99=AE=E9=80=9A=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5=E7=9A=84BUG=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++++ README.md | 17 +++++++++++++---- src/mixins/common.js | 4 +++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index bc6552b..7da290f 100755 --- a/App.vue +++ b/App.vue @@ -6,6 +6,7 @@ @on-copy="onCopy" @on-upload-image="onUpladImage" @on-save="onSave" + @on-error="onError" :height="500" /> @@ -38,6 +39,9 @@ }, onSave(data) { console.log(data); + }, + onError(err) { + console.log(err) } } } diff --git a/README.md b/README.md index a677da3..6cc3ce4 100755 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ import { MarkdownPreview } from 'vue-meditor' ```js import Markdown from '@/components/markdown/...'; ``` -专业版 +专业版 ```js import MarkdownPro from '@/components/markdown/pro'; ``` @@ -80,7 +80,7 @@ import MarkdownPreview from '@/components/markdown/preview';