Skip to content

Commit 72f4459

Browse files
committed
新增刷新
1 parent bc9719f commit 72f4459

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/axios-request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @Company:
77
* @Date: 2019-08-16 16:57:42
88
* @LastEditors: 水痕
9-
* @LastEditTime: 2019-08-21 16:23:28
9+
* @LastEditTime: 2019-08-23 13:57:49
1010
*/
1111

1212
import axios from 'axios';
@@ -110,6 +110,7 @@ class AxiosRequest {
110110
redirect: routers.currentRoute.fullPath,
111111
},
112112
});
113+
window.location.reload();
113114
break;
114115

115116
// 403 token过期
@@ -120,6 +121,7 @@ class AxiosRequest {
120121
console.log('登录过期,请重新登录');
121122
// 清除全部的缓存数据
122123
window.localStorage.clear();
124+
window.location.reload();
123125
// store.commit('loginSuccess', null);
124126
// 跳转登录页面,并将要浏览的页面fullPath传过去,登录成功后跳转需要访问的页面
125127
setTimeout(() => {

0 commit comments

Comments
 (0)