Merge pull request #134 from lb1565387341/liubei

解决重复登录问题
This commit is contained in:
芋道源码 2025-03-23 17:29:27 +08:00 committed by GitHub
commit 28c1e2d5f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,10 @@ const refreshToken = async () => {
const handleAuthorized = () => { const handleAuthorized = () => {
const { t } = useI18n() const { t } = useI18n()
if (!isRelogin.show) { if (!isRelogin.show) {
// 如果已经到登录页面则不进行弹窗提示
if (window.location.href.includes('login')) {
return
}
isRelogin.show = true isRelogin.show = true
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), { ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
showCancelButton: false, showCancelButton: false,