mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-02 04:14:06 +08:00
fix: #I5KCI6
This commit is contained in:
@@ -13,14 +13,12 @@ export interface DictTypeType {
|
||||
dictValue: DictValueType[]
|
||||
}
|
||||
export interface DictState {
|
||||
isSetDict: boolean
|
||||
dictMap: Recordable
|
||||
}
|
||||
|
||||
export const useDictStore = defineStore({
|
||||
id: 'dict',
|
||||
state: (): DictState => ({
|
||||
isSetDict: false,
|
||||
dictMap: {}
|
||||
}),
|
||||
persist: {
|
||||
@@ -30,8 +28,12 @@ export const useDictStore = defineStore({
|
||||
getDictMap(): Recordable {
|
||||
return this.dictMap
|
||||
},
|
||||
getIsSetDict(): boolean {
|
||||
return this.isSetDict
|
||||
getHasDictData(): Boolean {
|
||||
if (this.dictMap.length > 0) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
@@ -53,9 +55,6 @@ export const useDictStore = defineStore({
|
||||
})
|
||||
})
|
||||
this.dictMap = dictMap
|
||||
},
|
||||
setIsSetDict(isSetDict: boolean) {
|
||||
this.isSetDict = isSetDict
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user