Kaynağa Gözat

完成个人文档的修改功能中标签保存

yxc 2 yıl önce
ebeveyn
işleme
31399d02b9
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/views1/File/Individual/IndividualView.vue

+ 3 - 3
src/views1/File/Individual/IndividualView.vue

@@ -743,7 +743,6 @@ export default {
         isDel: null,
         searchValue: this.spaceId,
         tagList: [],
-      
       };
       this.resetForm("form");
       this.dynamicTags=[]
@@ -787,10 +786,11 @@ export default {
       const docId = row.docId || this.ids;
       getInfo(docId, row.createYear).then((response) => {
         this.form = response.data;
-        this.dynamicTags = this.form.tagList.tagName;
         this.open = true;
         this.title = "修改文件基本信息";
-        // console.log(response);
+        this.dynamicTags = this.form.tagList.map(item=>item.tagName);
+        // console.log(this.dynamicTags);
+        // console.log(this.form);
       });
     },
     /** 提交按钮 */