Commit 369a35a5 by liang ce

测试

parent 79ccc182
......@@ -42,6 +42,7 @@ router.beforeEach(function (to, from, next) {
if (sessionStorage.getItem('userId')) {
next()
} else {
localStorage.setItem('orgId', to.redirectedFrom.substr(1))
config.ddconfig().then((res) => {
if (res === 'no') {
next({ name: 'configError' })
......
......@@ -98,10 +98,7 @@ export default new Router({
},
{
path: '/*',
redirect: '/dashboard',
beforeEnter (to, from, next) {
console.log(to, from, next)
}
redirect: '/dashboard'
}
]
})
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