mirror of
https://github.com/iczer/vue-antd-admin
synced 2026-07-14 18:11:09 +08:00
Compare commits
No commits in common. "9a7493c99c8116d708eb620a5f276cf21081a504" and "c0e5f2ccecee1bcfc277f5716e48ea6255eaaeda" have entirely different histories.
9a7493c99c
...
c0e5f2ccec
@ -44,7 +44,7 @@ const tokenCheck = {
|
||||
* `options: Object`: 应用配置,包含: {router, i18n, store, message},可根据需要扩展。
|
||||
|
||||
### onRejected
|
||||
我们会为 onRejected 钩子函数注入 error 和 options 两个参数:
|
||||
我们会为 onFulfilled 钩子函数注入 error 和 options 两个参数:
|
||||
* `error: Error`: axios 请求错误对象
|
||||
* `options: Object`: 应用配置,包含: {router, i18n, store, message},可根据需要扩展。
|
||||
|
||||
@ -128,4 +128,4 @@ export default {
|
||||
response: [resp401, resp403] // 响应拦截
|
||||
}
|
||||
```
|
||||
:::
|
||||
:::
|
||||
@ -75,9 +75,6 @@ function parseRoutes(routesConfig, routerMap) {
|
||||
redirect: routeCfg.redirect || router.redirect,
|
||||
meta: {...meta, authority: meta.authority || '*'}
|
||||
}
|
||||
if (router.beforeEnter) {
|
||||
route.beforeEnter = router.beforeEnter
|
||||
}
|
||||
if (routeCfg.invisible || router.invisible) {
|
||||
route.meta.invisible = true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user