diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 87a28f35f..89f9fd729 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -63,10 +63,10 @@ export const useDictStore = defineStore('dict', { cssClass: dictData.cssClass }) }) + this.dictMap = dictDataMap + this.isSetDict = true + wsCache.set(CACHE_KEY.DICT_CACHE, dictDataMap, { exp: 60 }) // 60 秒 过期 } - this.dictMap = dictDataMap - this.isSetDict = true - wsCache.set(CACHE_KEY.DICT_CACHE, dictDataMap, { exp: 60 }) // 60 秒 过期 } }, getDictByType(type: string) {