feat: migrate app routes and business modules

This commit is contained in:
2026-08-12 18:22:59 +08:00
parent 555aa00043
commit cc706378c2
247 changed files with 28623 additions and 14988 deletions
+12
View File
@@ -0,0 +1,12 @@
export const getRequestErrorMessage = (error, fallback = '操作未完成,请稍后再试。') => {
if (error?.code === 'NETWORK_ERROR' || error?.code === 'REQUEST_TIMEOUT') {
return '网络不太稳定,请检查网络后重试。'
}
if (error?.code === 'BUSINESS_ERROR' && Number(error.businessCode) === 401) {
return '登录状态已失效,请重新登录。'
}
if (error?.code === 'BUSINESS_ERROR' && Number(error.businessCode) === 403) {
return '暂时没有权限进行这项操作。'
}
return fallback
}