Procházet zdrojové kódy

fix: 恢复editor组件的init方法,add.vue需要调用它

Developer před 2 týdny
rodič
revize
d0d334761f
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. binární
      dist.zip
  2. 3 3
      src/components/editor/index.vue

binární
dist.zip


+ 3 - 3
src/components/editor/index.vue

@@ -131,9 +131,9 @@ export default {
         }
     },
     methods: {
-        // init() {
-        //     this.editorContent = this.content || '';
-        // },
+        init() {
+            this.editorContent = this.content || '';
+        },
         beforeUpload(file) {},
         // 值发生变化
         onEditorChange(editor) {