Explorar o código

修复表单验证bug

hcf hai 1 ano
pai
achega
71f6d02b7e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/audit/depots/index.vue

+ 2 - 2
src/views/audit/depots/index.vue

@@ -700,7 +700,7 @@
 			this.popTitle = '注册'
 			this.dialogFormVisible = true;
 			setTimeout(() => {
-				// (this as any).$refs.addFormId.clearValue();
+				(this as any).$refs.addFormId.clearValue();
 				if ((this as any).$refs.addFormId) (this as any).$refs.addFormId.setValue({});
 			}, 0)
 		}
@@ -710,7 +710,7 @@
 			this.popTitle = '编辑'
 			this.dialogFormVisible = true;
 			setTimeout(() => {
-				// (this as any).$refs.addFormId.clearValue();
+				(this as any).$refs.addFormId.clearValue();
 				if ((this as any).$refs.addFormId) (this as any).$refs.addFormId.setValue(e);
 			}, 0)
 		}