Преглед на файлове

!533 fix: delete href.includes('login?redirect=')
Merge pull request !533 from AhJindeg/hotfix/handleAuthorized

芋道源码 преди 9 месеца
родител
ревизия
8362665f2b
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      src/config/axios/service.ts

+ 0 - 4
src/config/axios/service.ts

@@ -206,10 +206,6 @@ const refreshToken = async () => {
 const handleAuthorized = () => {
   const { t } = useI18n()
   if (!isRelogin.show) {
-    // 如果已经到重新登录页面则不进行弹窗提示
-    if (window.location.href.includes('login?redirect=')) {
-      return
-    }
     isRelogin.show = true
     ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
       showCancelButton: false,