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() { async resetDict() {
cache.session.delete(CACHE_KEY.DICT_CACHE) cache.session.delete(CACHE_KEY.DICT_CACHE)
const res = await listSimpleDictData() const res = (await listSimpleDictData()) || []
// 设置数据 // 设置数据
const dictDataMap = new Map<string, any>() const dictDataMap = new Map<string, any>()
res.forEach((dictData: DictDataVO) => { res.forEach((dictData: DictDataVO) => {

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

Loading…
Cancel
Save