mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-11 02:36:54 +08:00
20 lines
344 B
TypeScript
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
|
|
}
|
|
}
|
|
})
|