|
@@ -1,6 +1,7 @@
|
|
|
"use strict";
|
|
|
import axios from "axios";
|
|
|
import bus from "./bus.js";
|
|
|
+import {router} from '../main'
|
|
|
let store=null
|
|
|
// 异步加载store模块 不异步加载的话,@/api/modules/oldApi.js的导入导出写法会有问题
|
|
|
import('@/vuex/index.js')
|
|
@@ -77,14 +78,15 @@ function checkStatus(response,closableErrMsg) {
|
|
|
} else if (res.Ret == 403) {
|
|
|
errorMsgShow(closableErrMsg,res.Msg)
|
|
|
} else if (res.Ret === 408) {
|
|
|
- localStorage.setItem("auth", "")
|
|
|
+ // localStorage.setItem("auth", "")
|
|
|
localStorage.setItem("loginTime", "")
|
|
|
bus
|
|
|
.$alert(res.Msg, "提示", {
|
|
|
showClose: false,
|
|
|
})
|
|
|
.then(() => {
|
|
|
- window.location.href = window.location.origin + '/login';
|
|
|
+ router.replace('/login')
|
|
|
+ // window.location.href = window.location.origin + '/login';
|
|
|
});
|
|
|
}
|
|
|
return res;
|