Browse Source

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

yxc 2 years ago
parent
commit
31399d02b9
1 changed files with 3 additions and 3 deletions
  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);
       });
     },
     /** 提交按钮 */