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