@sunny-base-web/effects 0.8.53 → 0.8.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -498,6 +498,12 @@ export declare interface EffectsConfig {
498
498
  * 配置后请求拦截器优先从 Cookie 读取 Token,不存在时回退到 Store
499
499
  */
500
500
  cookieTokenKey?: string;
501
+ /**
502
+ * 业务错误码自定义处理(不包括 530 登出逻辑,530 由框架内部处理不可覆盖)
503
+ * 当后端返回 code 非 200 且非 530 时触发
504
+ * 不配置则默认使用 Message.error 提示
505
+ */
506
+ onBusinessError?: (code: number, message: string) => void | Promise<void>;
501
507
  /**
502
508
  * 头部配置
503
509
  */