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',
|
name: 'AdminModule',
|
||||||
component: () => import('@/views/MainLayout.vue'),
|
component: () => import('@/views/MainLayout.vue'),
|
||||||
beforeEnter: async (_to, _from, next) => {
|
beforeEnter: async (_to, _from, next) => {
|
||||||
|
console.log('AdminModule - beforeEnter')
|
||||||
const token = await getToken()
|
const token = await getToken()
|
||||||
|
console.log(token)
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
|
console.log('11111')
|
||||||
const roles = getRole()
|
const roles = getRole()
|
||||||
|
console.log(roles)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
token &&
|
token &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue