yz3456
2024-04-06 1a1654bbd7d91df6cf4864986748e0940907c8eb
ruoyi-ui/src/views/collection/index.vue
@@ -828,6 +828,7 @@
            this.$modal.msgSuccess("新增成功");
            this.open = false;
            // 清空formDat对象的数据
            this.newOption = '';
            Object.keys(this.formDat).forEach(key => {
              this.formDat[key] = '';
            });
@@ -842,6 +843,18 @@
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
      for(let i = 0; i <= this.fileList.length; i++)
      {
        this.handleRemove(this.fileList[0]);
      }
      for(let i = 0; i < this.fileListOther.length; i++){
        this.handleRemoveFile(this.fileListOther[0]);
      }
    },
  handleChange(file, fileList1) {
        //定义一个全局数组uploadFileList来做存储