From 88e48b29522511a99fd72d28d518e3ba7c6fb0cc Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Thu, 21 Mar 2024 15:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=9C=A8if=E5=86=85=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/dict.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {