Files
SQLBot/frontend/src/stores/dashboard/dashboard.ts
T
2025-05-15 18:20:09 +08:00

20 lines
344 B
TypeScript

import { defineStore } from 'pinia'
export const useDashboardStore = defineStore('dashboardStore', {
state: () => {
return {
curComponent: null
}
},
getters: {
getCurComponent(): any {
return this.curComponent
}
},
actions: {
setCurComponent(value: any) {
this.curComponent = value
}
}
})