mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-25 02:58:31 +08:00
去除403,404页面的过滤,当token失效时即使页面异常也应当重新跳转回login
This commit is contained in:
parent
74dd33d936
commit
c198da6bbb
@ -6,7 +6,8 @@ Vue.use(Router)
|
|||||||
|
|
||||||
// 不需要登录拦截的路由配置
|
// 不需要登录拦截的路由配置
|
||||||
const loginIgnore = {
|
const loginIgnore = {
|
||||||
names: ['404', '403'], //根据路由名称匹配
|
names: [],
|
||||||
|
//names: ['404', '403'], //根据路由名称匹配
|
||||||
paths: ['/login'], //根据路由fullPath匹配
|
paths: ['/login'], //根据路由fullPath匹配
|
||||||
/**
|
/**
|
||||||
* 判断路由是否包含在该配置中
|
* 判断路由是否包含在该配置中
|
||||||
|
Loading…
x
Reference in New Issue
Block a user