Fix redirect issue
This commit is contained in:
parent
145c9158c7
commit
9f44ccfbf0
@ -333,10 +333,12 @@ router.beforeEach((to, from, next) => {
|
|||||||
// const has = Object.keys(config).findIndex(i => i === c)
|
// const has = Object.keys(config).findIndex(i => i === c)
|
||||||
if (!config || Object.keys(config).findIndex(i => i === c) > -1) {
|
if (!config || Object.keys(config).findIndex(i => i === c) > -1) {
|
||||||
next()
|
next()
|
||||||
} if (c === 'index.php') {
|
|
||||||
next({ name: 'home' })
|
|
||||||
} else if (c) {
|
} else if (c) {
|
||||||
|
if (c === 'index.php') {
|
||||||
|
next({ name: '/' })
|
||||||
|
} else {
|
||||||
next({ name: 'chain-404' })
|
next({ name: 'chain-404' })
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user