Commit 7ba6bab0 by jack

test 部署

1 parent 371b25de
......@@ -78,6 +78,12 @@ export default function $axios(options) {
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
if (response) {
if (response.data == undefined) {
let str = response.request.responseText;
//判断未登录,未登录,后台会发送请求,返回一个html页面
if (str.indexOf('广联赛讯运营平台') >= 0) {
window.location.href = "http://sso.glsx.com.cn/#/login"
return false;
}
data = JSON.parse(response.request.responseText)
} else {
data = JSON.parse(response.data)
......@@ -118,11 +124,11 @@ export default function $axios(options) {
//特殊定义,不做处理
break;
case '-1':
if(data.errId == '-200'){
if (data.errId == '-200') {
//window.refresh();
location.reload();
//window.reload()
}else{
} else {
Util.Info({
message: data.message || data.msg || '出错了,请联系管理员'
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!