Commit 79ccc182 by liang ce

测试

parent 2aff8661
...@@ -51,6 +51,7 @@ router.beforeEach(function (to, from, next) { ...@@ -51,6 +51,7 @@ router.beforeEach(function (to, from, next) {
if (res === 'noPermission') { if (res === 'noPermission') {
next({ name: 'noPermission' }) next({ name: 'noPermission' })
} else { } else {
console.log(to, from, next, '问题踢踢踢踢踢踢')
next() next()
} }
}).catch((err) => { }).catch((err) => {
......
...@@ -100,7 +100,7 @@ export default new Router({ ...@@ -100,7 +100,7 @@ export default new Router({
path: '/*', path: '/*',
redirect: '/dashboard', redirect: '/dashboard',
beforeEnter (to, from, next) { beforeEnter (to, from, next) {
console.log(to) console.log(to, from, next)
} }
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment