Skip to content

Commit 28c1e2d

Browse files
authored
Merge pull request #134 from lb1565387341/liubei
解决重复登录问题
2 parents 41f2c71 + 81fb177 commit 28c1e2d

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)