Commit 4f3f6d65 by liuliufashi

update

parent 1995bcf0
...@@ -33,9 +33,13 @@ instance.interceptors.request.use( ...@@ -33,9 +33,13 @@ instance.interceptors.request.use(
instance.interceptors.response.use( instance.interceptors.response.use(
function (response) { function (response) {
if (response.status === 200 ) { if (response.status === 200 ) {
if(response.data.state != 1){
message.error(response.data.message);
}else{
return response.data return response.data
}
} else { } else {
message.error(response.data.message); message.error('api请求失败');
} }
}, },
function (error) { 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