浏览代码

重置表单校验状态

zouzs 6 小时之前
父节点
当前提交
fcaf64885e
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      src/views/ipAccount/index.vue
  2. 1 0
      src/views/ipAccount/ipAccountInterface.vue
  3. 1 0
      src/views/ipInterface/index.vue

+ 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();
 };
 
 // 参数预期管理