This commit is contained in:
parent
7c28d3f3ae
commit
b2d93034dc
1 changed files with 4 additions and 0 deletions
|
|
@ -29,10 +29,14 @@ const router = createRouter({
|
|||
name: 'AdminModule',
|
||||
component: () => import('@/views/MainLayout.vue'),
|
||||
beforeEnter: async (_to, _from, next) => {
|
||||
console.log('AdminModule - beforeEnter')
|
||||
const token = await getToken()
|
||||
console.log(token)
|
||||
|
||||
if (token) {
|
||||
console.log('11111')
|
||||
const roles = getRole()
|
||||
console.log(roles)
|
||||
|
||||
if (
|
||||
token &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue