Quellcode durchsuchen

重置表单校验状态

zouzs vor 10 Stunden
Ursprung
Commit
fcaf64885e

+ 1 - 0
src/views/ipAccount/index.vue

@@ -278,6 +278,7 @@ const handleSubmit = async (values: FieldValues) => {
 
 const handleClose = () => {
   console.log(dialogForm.value.formInstance);
+  dialogForm.value.formInstance.resetFields();
 };
 
 const { buttons } = useTable();

+ 1 - 0
src/views/ipAccount/ipAccountInterface.vue

@@ -495,6 +495,7 @@ const handleSubmit = async (values: FieldValues) => {
 
 const handleClose = () => {
   console.log(dialogForm.value.formInstance);
+  dialogForm.value.formInstance.resetFields();
 };
 
 const { buttons } = useTable();

+ 1 - 0
src/views/ipInterface/index.vue

@@ -344,6 +344,7 @@ const handleSubmit = async (values: FieldValues) => {
 
 const handleClose = () => {
   console.log(dialogForm.value.formInstance);
+  dialogForm.value.formInstance.resetFields();
 };
 
 // 参数预期管理