소스 검색

重置表单校验状态

zouzs 11 시간 전
부모
커밋
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();
 };
 
 // 参数预期管理