fix:如果已经到重新登录页面则不进行弹窗提示

This commit is contained in:
puhui999 2023-11-13 15:48:21 +08:00
parent 6160c2fa8a
commit 2385cd9b9a

View File

@ -217,6 +217,10 @@ 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,