Commit 0591352b by liang ce

路由修改

parent 0f06ae6e
...@@ -52,14 +52,6 @@ router.beforeEach(function (to, from, next) { ...@@ -52,14 +52,6 @@ router.beforeEach(function (to, from, next) {
localStorage.clear() localStorage.clear()
localStorage.setItem('orgId', to.redirectedFrom.substr(1)) localStorage.setItem('orgId', to.redirectedFrom.substr(1))
} }
// config.ddconfig().then((res) => {
// if (res === 'no') {
// next({ name: 'configError' })
// }
// }).then(() => {
// }).catch((err) => {
// console.log(err, '登录失败')
// })
config.ddready('ddpermission').then((res) => { config.ddready('ddpermission').then((res) => {
if (res === 'noPermission') { if (res === 'noPermission') {
next({ name: 'noPermission' }) next({ name: 'noPermission' })
......
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