Explorar o código

图片上传bug修改

xinfeng %!s(int64=6) %!d(string=hai) anos
pai
achega
33c4f3195c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      components/editor.vue

+ 2 - 1
components/editor.vue

@@ -89,7 +89,8 @@ export default {
     console.log('this.quillName', this.quillName)
     // 为图片ICON绑定事件  getModule 为编辑器的内部属性
     this[this.quillName]
-      .getModule("toolbar")
+      .getModule("toolbar").addHandler("image", this.imgHandler);
+
     this.addLinkEvent()
   },
   methods: {