From d60fd3eb4ca5e70c7c144d25672a1f34ee3def22 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 19 May 2025 14:27:15 +0800 Subject: [PATCH] sc --- src/store/modules/dict.ts | 2 +- src/store/modules/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 50a7ea3..a4d4d1c 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -75,7 +75,7 @@ export const useDictStore = defineStore('dict', { }, async resetDict() { cache.session.delete(CACHE_KEY.DICT_CACHE) - const res = await listSimpleDictData() + const res = (await listSimpleDictData()) || [] // 设置数据 const dictDataMap = new Map() res.forEach((dictData: DictDataVO) => { diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index baa1797..23cd47d 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -63,7 +63,7 @@ export const useUserStore = defineStore('admin-user', { async loginOut() { await loginOut() removeToken() - cache.local.clear() + // cache.local.clear() this.resetState() }, resetState() {