refine close modal time

This commit is contained in:
Cindy
2024-07-10 10:26:42 +08:00
parent 423499b77c
commit 0d9bfaa40d
2 changed files with 3 additions and 32 deletions

View File

@@ -13,8 +13,9 @@ export const useModalStore = defineStore('modalStore', {
this.whichModal = whichModal;
},
async closeModal(){
await delaySecond(2);
console.log("Start closing modal");
this.isModalOpen = false;
console.log("Modal closed");
},
},
});