Selaa lähdekoodia

保存成功后清除文件列表

zhulu 1 vuosi sitten
vanhempi
commit
72855e0868
2 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 2 0
      src/views/core/drill/plan/index.vue
  2. 2 0
      src/views/core/edu/plan/index.vue

+ 2 - 0
src/views/core/drill/plan/index.vue

@@ -582,6 +582,7 @@ export default {
               this.$modal.msgSuccess("编辑成功");
               this.open = false;
               this.getList();
+              this.$refs["upload"].clearFiles();
             }).catch(() => {
             });
 
@@ -590,6 +591,7 @@ export default {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
+              this.$refs["upload"].clearFiles();
             });
           }
         }

+ 2 - 0
src/views/core/edu/plan/index.vue

@@ -662,6 +662,7 @@ export default {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
+              this.$refs["upload"].clearFiles();
             }).catch(() => {
             });
 
@@ -670,6 +671,7 @@ export default {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
+              this.$refs["upload"].clearFiles();
             });
           }
         }