From 04e745fa728380671f7bc63a1e50d4d73226f79e Mon Sep 17 00:00:00 2001 From: qlin Date: Mon, 30 Oct 2023 14:28:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=20request=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=20(#219)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/plugin/plugins/request.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/plugin/plugins/request.md b/docs/reference/plugin/plugins/request.md index ff8333d5..52025698 100644 --- a/docs/reference/plugin/plugins/request.md +++ b/docs/reference/plugin/plugins/request.md @@ -186,3 +186,10 @@ export default { }, }; ``` + +## 2.x 升级到 3.x + +1. 删除 dataField 配置,通过 dataHandler 实现类似功能,详情看上文案例 +2. errorHandler 改成了函数了,异常处理逻辑,查看上文案例 +3. 废弃 base 参数,用 baseURL +4. 移除 skipErrorHandler 参数,直接传 errorHandler 可覆盖默认 errorHandler