mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
onFulfilled -> onRejected
响应拦截器 - onRejected 那部分,单词写错了,大大你把写成了 onRejected 写成了 onFulfilled
This commit is contained in:
parent
816d19f7da
commit
baf063f9ea
@ -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] // 响应拦截
|
||||
}
|
||||
```
|
||||
:::
|
||||
:::
|
||||
|
Loading…
x
Reference in New Issue
Block a user