add fiel
This commit is contained in:
@@ -97,6 +97,10 @@ service.interceptors.request.use(
|
||||
*/
|
||||
const handleResponse = (response: AxiosResponse<any>) => {
|
||||
if (response.data.code === 1) {
|
||||
// 业务错误,统一弹出错误提示
|
||||
if (response.data.msg) {
|
||||
useMessage().error(response.data.msg);
|
||||
}
|
||||
throw response.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user