Prechádzať zdrojové kódy

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

Developer 2 týždňov pred
rodič
commit
d0d334761f
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. BIN
      dist.zip
  2. 3 3
      src/components/editor/index.vue

BIN
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) {