瀏覽代碼

fix: the bug in the lock method of the vbenModal component (#6648)

panda7 1 月之前
父節點
當前提交
2cc78f925f
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      packages/@core/ui-kit/popup-ui/src/modal/modal-api.ts

+ 5 - 2
packages/@core/ui-kit/popup-ui/src/modal/modal-api.ts

@@ -107,7 +107,6 @@ export class ModalApi {
       this.store.setState((prev) => ({
         ...prev,
         isOpen: false,
-        submitting: false,
       }));
     }
   }
@@ -162,7 +161,11 @@ export class ModalApi {
   }
 
   open() {
-    this.store.setState((prev) => ({ ...prev, isOpen: true }));
+    this.store.setState((prev) => ({
+      ...prev,
+      isOpen: true,
+      submitting: false,
+    }));
   }
 
   setData<T>(payload: T) {