Przeglądaj źródła

fix:修改租户新增修改时的表单清空逻辑

lph 1 rok temu
rodzic
commit
5ba29e2d81
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      zkqy-ui/src/views/system/tenant/index.vue

+ 2 - 1
zkqy-ui/src/views/system/tenant/index.vue

@@ -1111,18 +1111,19 @@ export default {
           if (this.form.tenantId != null) {
             updateTenant(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");
+              this.reset();
               this.open = false;
               this.getList();
             });
           } else {
             addTenant(this.form).then((response) => {
               this.$modal.msgSuccess("新增成功");
+              this.reset();
               this.open = false;
               this.getList();
             });
           }
         }
-        this.reset();
       });
     },
     /** 提交按钮 */