From baf063f9eac8b1fb70106b3067433ce1ddab9920 Mon Sep 17 00:00:00 2001 From: Matrix <79368469+matrix-zyh@users.noreply.github.com> Date: Fri, 6 Aug 2021 14:31:23 +0800 Subject: [PATCH] onFulfilled -> onRejected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 响应拦截器 - onRejected 那部分,单词写错了,大大你把写成了 onRejected 写成了 onFulfilled --- docs/advance/interceptors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advance/interceptors.md b/docs/advance/interceptors.md index f34fc94..82ed795 100644 --- a/docs/advance/interceptors.md +++ b/docs/advance/interceptors.md @@ -44,7 +44,7 @@ const tokenCheck = { * `options: Object`: 应用配置,包含: {router, i18n, store, message},可根据需要扩展。 ### onRejected -我们会为 onFulfilled 钩子函数注入 error 和 options 两个参数: +我们会为 onRejected 钩子函数注入 error 和 options 两个参数: * `error: Error`: axios 请求错误对象 * `options: Object`: 应用配置,包含: {router, i18n, store, message},可根据需要扩展。 @@ -128,4 +128,4 @@ export default { response: [resp401, resp403] // 响应拦截 } ``` -::: \ No newline at end of file +:::