Skip to content

Commit 8547b28

Browse files
committed
fix: 🐞 delete href.includes('login?redirect=')
1 parent a13e8b7 commit 8547b28

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/config/axios/service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,6 @@ const refreshToken = async () => {
206206
const handleAuthorized = () => {
207207
const { t } = useI18n()
208208
if (!isRelogin.show) {
209-
// 如果已经到重新登录页面则不进行弹窗提示
210-
if (window.location.href.includes('login?redirect=')) {
211-
return
212-
}
213209
isRelogin.show = true
214210
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
215211
showCancelButton: false,

0 commit comments

Comments
 (0)