Revert "fix: #316 modal closing too slow bug"

This reverts commit 6b7778fe9f.
This commit is contained in:
Cindy Chang
2024-07-10 11:06:07 +08:00
parent 6b7778fe9f
commit 4c9633a395
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ export const useModalStore = defineStore('modalStore', {
this.whichModal = whichModal;
},
async closeModal(){
await delaySecond(2);
this.isModalOpen = false;
},
},

View File

@@ -1,5 +1,5 @@
<template>
<div id="modal_container" v-show="modalStore.isModalOpen" class="fixed w-screen h-screen bg-gray-800
<div id="modal_container" v-if="modalStore.isModalOpen" class="fixed w-screen h-screen bg-gray-800
flex justify-center items-center">
<div class="flex">