兵马未动 粮草先行

This commit is contained in:
RISE
2026-02-08 23:47:50 +08:00
parent 00a005e65f
commit 2670340af3
47 changed files with 3909 additions and 257 deletions

View File

@@ -97,9 +97,10 @@ service.interceptors.request.use(
*/
const handleResponse = (response: AxiosResponse<any>) => {
if (response.data.code === 1) {
// 业务错误,统一弹出错误提示
// 业务错误,统一弹出错误提示(标记已展示,避免 hook/页面 catch 再次弹窗)
if (response.data.msg) {
useMessage().error(response.data.msg);
response.data._messageShown = true;
}
throw response.data;
}