wip: perf pinia

This commit is contained in:
kailong321200875
2022-09-30 16:52:39 +08:00
parent da39f3bc90
commit e757c54fb6
10 changed files with 180 additions and 197 deletions

View File

@@ -6,15 +6,12 @@ export interface DictState {
dictObj: Recordable
}
export const useDictStore = defineStore({
id: 'dict',
export const useDictStore = defineStore('dict', {
state: (): DictState => ({
isSetDict: false,
dictObj: {}
}),
persist: {
enabled: true
},
persist: true,
getters: {
getDictObj(): Recordable {
return this.dictObj