|
|
@@ -35,7 +35,6 @@ router.beforeEach(async(to, from, next) => {
|
|
|
const accessRoutes = await store.dispatch('permission/generateRoutes', authorities)
|
|
|
|
|
|
router.addRoutes(accessRoutes)
|
|
|
- console.log('toto,to,to', to)
|
|
|
next({ ...to, replace: true })
|
|
|
} catch (error) {
|
|
|
// remove token and go to login page to re-login
|