Forráskód Böngészése

清除表单缓存

wangshuo 1 hónapja
szülő
commit
394fe0a39e
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      ruoyi-ui/src/views/system/repo/index.vue

+ 2 - 3
ruoyi-ui/src/views/system/repo/index.vue

@@ -325,6 +325,8 @@ export default {
         fileName: undefined
       }
       this.resetForm('form')
+      this.comparisonMade = false
+      FileUpload.data().fileList = []
     },
     /** 搜索按钮操作 */
     handleQuery() {
@@ -338,8 +340,6 @@ export default {
     /** 新增按钮操作 */
     handleAdd(row) {
       this.reset()
-      FileUpload.data().uploadList= []
-
       if (row != null && row.repoId) {
         this.form.parentId = row.repoId
       } else {
@@ -354,7 +354,6 @@ export default {
     handleUpload(row) {
       this.reset()
       this.compareResult = []
-      FileUpload.data().uploadList= []
       getRepo(row.repoId).then(response => {
         this.form = response.data
         this.form.remark = undefined