WIP: #316 close modal

This commit is contained in:
Cindy Chang
2024-08-16 14:32:30 +08:00
parent 9842bf678f
commit 3c6644bc63

View File

@@ -1,6 +1,5 @@
import { defineStore } from 'pinia';
import { MODAL_ACCT_INFO, } from '@/constants/constants.js';
import { delaySecond } from "@/utils/timeUtil.js";
export const useModalStore = defineStore('modalStore', {
state: () => ({
@@ -13,7 +12,6 @@ export const useModalStore = defineStore('modalStore', {
this.whichModal = whichModal;
},
async closeModal(){
await delaySecond(2);
this.isModalOpen = false;
},
},