This commit is contained in:
2026-01-22 13:38:26 +08:00
3 changed files with 345 additions and 306 deletions

View File

@@ -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;
}