mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 08:34:15 +03:00
18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
export const useAppStore = defineStore('app', {
|
|
state: () => ({
|
|
drawer: false,
|
|
color: 'success',
|
|
}),
|
|
actions: {
|
|
setDrawer(value: boolean) {
|
|
this.drawer = value;
|
|
},
|
|
setColor(value: string) {
|
|
this.color = value;
|
|
},
|
|
toggleDrawer() {
|
|
this.drawer = !this.drawer;
|
|
},
|
|
},
|
|
});
|