linwenxin hai 1 ano
pai
achega
35aed7112c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/views/setting/departmentManage/index.vue

+ 1 - 3
src/views/setting/departmentManage/index.vue

@@ -288,9 +288,7 @@ export default {
     cancelMainForm() {
       this.mainFormVisible = false
       this.$refs?.mainForm?.resetFields()
-      this.mainForm.parentId = ''
-      this.mainForm.address = ''
-      this.mainForm.name = ''
+      this.$data.mainForm = this.$options.data().mainForm
     },
 
     // 提交 网点表单