Browse Source

chore: request error intercepter changed commit

master
AaronWu 2 months ago
parent
commit
1fd41a80d6
  1. 2
      src/utils/request.ts

2
src/utils/request.ts

@ -74,7 +74,7 @@ service.interceptors.response.use(
// throw other
const error = new Error(res.message || UNKNOWN_ERROR) as Error & { code: any };
const error = new Error(res.msg || UNKNOWN_ERROR) as Error & { code: any };
error.code = res.code;
return Promise.reject(error);
} else {

Loading…
Cancel
Save