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