Commit 369a35a5 by liang ce

测试

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