fix: 🐞 delete href.includes('login?redirect=')

pull/533/head
AhJindeg 2024-09-02 10:42:41 +08:00
parent a13e8b77c9
commit 8547b28d63
1 changed files with 0 additions and 4 deletions

View File

@ -206,10 +206,6 @@ 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?redirect=')) {
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,