Преглед изворни кода

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

Developer пре 2 недеља
родитељ
комит
d0d334761f
2 измењених фајлова са 3 додато и 3 уклоњено
  1. BIN
      dist.zip
  2. 3 3
      src/components/editor/index.vue

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