!195 修复登录后通过登录页面无法再次登录的问题

Merge pull request !195 from lehug/master
This commit is contained in:
芋道源码
2023-08-10 13:22:56 +00:00
committed by Gitee
2 changed files with 5 additions and 3 deletions

View File

@ -148,6 +148,8 @@ import { ElLoading } from 'element-plus'
import LoginFormTitle from './LoginFormTitle.vue'
import type { RouteLocationNormalizedLoaded } from 'vue-router'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()
import { useIcon } from '@/hooks/web/useIcon'
import * as authUtil from '@/utils/auth'
@ -244,6 +246,7 @@ const handleLogin = async (params) => {
if (!res) {
return
}
wsCache.delete(CACHE_KEY.USER) // 清除上次登录用户信息
ElLoading.service({
lock: true,
text: '正在加载系统中...',