Skip to content

Commit 3d4c8f2

Browse files
committed
2 parents 5216d18 + 28c1e2d commit 3d4c8f2

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
@@ -201,6 +201,10 @@ const refreshToken = async () => {
201201
const handleAuthorized = () => {
202202
const { t } = useI18n()
203203
if (!isRelogin.show) {
204+
// 如果已经到登录页面则不进行弹窗提示
205+
if (window.location.href.includes('login')) {
206+
return
207+
}
204208
isRelogin.show = true
205209
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
206210
showCancelButton: false,

0 commit comments

Comments
 (0)