From 3940a9e8160dc336b74b47d081a2b50dcaba458d Mon Sep 17 00:00:00 2001 From: JimQing Date: Mon, 13 Jul 2020 20:34:36 +0800 Subject: [PATCH] fix: menu emits fix --- src/view/CodemirrorEditor.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/view/CodemirrorEditor.vue b/src/view/CodemirrorEditor.vue index 1f17463..1e08dcb 100644 --- a/src/view/CodemirrorEditor.vue +++ b/src/view/CodemirrorEditor.vue @@ -56,9 +56,7 @@ v-model="rightClickMenuVisible" :left="mouseLeft" :top="mouseTop" - @downLoad="downloadEditorContent" @menuTick="onMenuEvent" - @insertTable="dialogFormVisible = true" /> @@ -295,6 +293,11 @@ export default { case 'insertPic': this.uploaded(info); break; + case 'downLoad': + this.downloadEditorContent(); + break; + case 'insertTable': + this.dialogFormVisible = true; default: break; }