|
|
@ -39,10 +39,12 @@ const request = curry( |
|
|
|
// if(typeof Vue.$afterRequestHook == 'function'){
|
|
|
|
// retData = Vue.$afterRequestHook(retData);
|
|
|
|
// }
|
|
|
|
console.log(res,'request1'); |
|
|
|
|
|
|
|
if (res.data.code > 8000 && res.data.code < 10000) { |
|
|
|
// Message.error(res.data.msg);
|
|
|
|
Message.error(res.data.msg); |
|
|
|
} |
|
|
|
if (res.code == 10005 || res.code == 10006 || res.code == 10007) { |
|
|
|
if (res.data.code == 10005 || res.data.code == 10006 || res.data.code == 10007) { |
|
|
|
// 10005 token为空 10006登陆超时 10007别处登录
|
|
|
|
console.log("登录失效"); |
|
|
|
Message.error(res.data.msg); |
|
|
|