Commit 4f3f6d65 by liuliufashi

update

parent 1995bcf0
......@@ -33,9 +33,13 @@ instance.interceptors.request.use(
instance.interceptors.response.use(
function (response) {
if (response.status === 200 ) {
return response.data
if(response.data.state != 1){
message.error(response.data.message);
}else{
return response.data
}
} else {
message.error(response.data.message);
message.error('api请求失败');
}
},
function (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment