Browse Source

fix: 图文富文本问题处理;

From-wh 2 years ago
parent
commit
10a2435f42
1 changed files with 3 additions and 5 deletions
  1. 3 5
      template/admin/src/pages/app/wechat/newsCategory/save.vue

+ 3 - 5
template/admin/src/pages/app/wechat/newsCategory/save.vue

@@ -88,11 +88,7 @@
                   </div>
                 </FormItem>
                 <FormItem label="正文:" prop="content">
-                  <WangEditor
-                    style="width: 90%"
-                    :content="saveForm.content"
-                    @editorContent="getEditorContent"
-                  ></WangEditor>
+                  <WangEditor style="width: 90%" :content="content" @editorContent="getEditorContent"></WangEditor>
                 </FormItem>
               </Col>
               <Col span="24" class="ml40">
@@ -217,6 +213,7 @@ export default {
         sm: 8,
         xs: 8,
       },
+      content: '',
     };
   },
   computed: {
@@ -285,6 +282,7 @@ export default {
           let info = res.data.info;
           this.list = info.new;
           this.saveForm = this.list[this.current];
+          this.content = this.list[this.current].content;
         })
         .catch((res) => {
           this.$Message.error(res.msg);