|
@@ -47,11 +47,9 @@ service.interceptors.response.use(
|
|
|
response => {
|
|
|
|
|
|
const res = response.data;
|
|
|
- console.log(res)
|
|
|
let msg = null
|
|
|
// if the custom code is not 20000, it is judged as an error.
|
|
|
if (res.status == 0 || res.status == -2) {
|
|
|
- console.log("执行错误");
|
|
|
// 执行错误 JSON 数据格式错误
|
|
|
msg = Message({
|
|
|
message: res.msg || res.error || 'Error',
|