|
|
@@ -75,22 +75,22 @@ service.interceptors.response.use(res => {
|
|
|
// location.href = '/index';
|
|
|
// })
|
|
|
// }).catch(() => {});
|
|
|
- Dialog
|
|
|
- .confirm({
|
|
|
- title: "系统提示",
|
|
|
- message: "登录状态已过期,您可以继续留在该页面,或者重新登录",
|
|
|
- confirmButtonText: '重新登录',
|
|
|
- cancelButtonText: '取消',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- location.href = '/login';
|
|
|
- // store.dispatch('LogOut').then(() => {
|
|
|
- // location.href = '/index';
|
|
|
- // })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
+ //Dialog
|
|
|
+ // .confirm({
|
|
|
+ // title: "系统提示",
|
|
|
+ // message: "登录状态已过期,您可以继续留在该页面,或者重新登录",
|
|
|
+ // confirmButtonText: '重新登录',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // location.href = '/login';
|
|
|
+ store.dispatch('LogOut').then(() => {
|
|
|
+ location.href = '/index';
|
|
|
+ })
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
|
|
|
- });
|
|
|
+ // });
|
|
|
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
|
|
} else if (code === 500) {
|
|
|
// Message({
|