Revert "fix: #316 modal closing too slow bug"
This reverts commit 6b7778fe9f.
This commit is contained in:
@@ -13,6 +13,7 @@ export const useModalStore = defineStore('modalStore', {
|
|||||||
this.whichModal = whichModal;
|
this.whichModal = whichModal;
|
||||||
},
|
},
|
||||||
async closeModal(){
|
async closeModal(){
|
||||||
|
await delaySecond(2);
|
||||||
this.isModalOpen = false;
|
this.isModalOpen = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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">
|
flex justify-center items-center">
|
||||||
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
|||||||
Reference in New Issue
Block a user