|
|
@@ -27,10 +27,10 @@ request.interceptors.response.use(
|
|
|
(response) => {
|
|
|
// 状态码为2开头,对响应数据做点什么
|
|
|
// console.log(response.data);
|
|
|
- if (response.data.code === 200) {
|
|
|
+ if (response.status === 200) {
|
|
|
return response;
|
|
|
} else {
|
|
|
- return Promise.reject(response.data.msg);
|
|
|
+ return Promise.reject(response.statusText);
|
|
|
}
|
|
|
},
|
|
|
async (error) => {
|