WIP account mgmt data-table prototype and modal prototype.

This commit is contained in:
Cindy Chang
2024-06-19 15:55:02 +08:00
parent 50c98892c4
commit b7862ab164
9 changed files with 252 additions and 11 deletions

15
src/stores/modal.js Normal file
View File

@@ -0,0 +1,15 @@
import { defineStore } from 'pinia';
export const useModalStore = defineStore('modalStore', {
state: () => ({
isModalOpen: false,
}),
actions: {
openModal() {
this.isModalOpen = true;
},
closeModal() {
this.isModalOpen = false;
},
},
});