Skip to content

Commit 2385cd9

Browse files
author
puhui999
committed
fix:如果已经到重新登录页面则不进行弹窗提示
1 parent 6160c2f commit 2385cd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config/axios/service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ const refreshToken = async () => {
217217
const handleAuthorized = () => {
218218
const { t } = useI18n()
219219
if (!isRelogin.show) {
220+
// 如果已经到重新登录页面则不进行弹窗提示
221+
if (window.location.href.includes('login?redirect=')) {
222+
return
223+
}
220224
isRelogin.show = true
221225
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
222226
showCancelButton: false,

0 commit comments

Comments
 (0)