feat: HTTP状态码 + 业务码

This commit is contained in:
2026-06-24 11:14:27 +08:00
parent 3f6d3f2761
commit 7b3d31a57c
5 changed files with 45 additions and 36 deletions

View File

@@ -7,6 +7,8 @@ type AppEventsMap = {
/** 请求错误(业务错误 / HTTP 错误 / 网络错误) */
'app:request:error': {
type: 'business' | 'http' | 'network'
/** HTTP 状态码http/business 类型时有效) */
httpStatus?: number
code?: number
message: string
}