فهرست منبع

恢复无效用户退出登录

dusenyao 1 سال پیش
والد
کامیت
b756e40ed6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/utils/http.js

+ 2 - 2
src/utils/http.js

@@ -53,7 +53,7 @@ service.interceptors.response.use(
         type: 'error',
         type: 'error',
         duration: 3 * 1000,
         duration: 3 * 1000,
       });
       });
-      // store.dispatch('user/signOut');
+      store.dispatch('user/signOut');
       const match = /#\/(.*?)\?/.exec(window.location.hash); // 使用 exec 方法进行匹配
       const match = /#\/(.*?)\?/.exec(window.location.hash); // 使用 exec 方法进行匹配
 
 
       // 答题跳转链接
       // 答题跳转链接
@@ -65,7 +65,7 @@ service.interceptors.response.use(
       if (extractedString === 'open/share/exercise') {
       if (extractedString === 'open/share/exercise') {
         return Promise.reject(new Error(`${error}` || 'Error'));
         return Promise.reject(new Error(`${error}` || 'Error'));
       }
       }
-      // window.location.href = '/';
+      window.location.href = '/';
     }
     }
 
 
     return res;
     return res;