qsh 1 month ago
parent 95e923841d
commit d60fd3eb4c
  1. 2
      src/store/modules/dict.ts
  2. 2
      src/store/modules/user.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<string, any>()
res.forEach((dictData: DictDataVO) => {

@ -63,7 +63,7 @@ export const useUserStore = defineStore('admin-user', {
async loginOut() {
await loginOut()
removeToken()
cache.local.clear()
// cache.local.clear()
this.resetState()
},
resetState() {

Loading…
Cancel
Save