linwenxin 1 rok pred
rodič
commit
35aed7112c

+ 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
     },
 
     // 提交 网点表单