Add path
This commit is contained in:
parent
49c8148fd2
commit
cc29f36230
|
|
@ -1,6 +1,5 @@
|
|||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue';
|
||||
import learningPathRoutes from './learningpath.routes'
|
||||
import {redirectToLoginIfRequired, updateLoggedIn} from '@/router/guards';
|
||||
|
||||
const loginUrl = '/sso/login/'
|
||||
|
|
@ -13,7 +12,6 @@ const router = createRouter({
|
|||
name: 'home',
|
||||
component: HomeView,
|
||||
meta: {
|
||||
layout: 'NoNavbarDemoLayout',
|
||||
public: true
|
||||
}
|
||||
},
|
||||
|
|
@ -32,9 +30,12 @@ const router = createRouter({
|
|||
component: () => import('../views/ProfileView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/learningpath',
|
||||
component: () => import('../views/LearningPath.vue'),
|
||||
children: learningPathRoutes
|
||||
path: '/learningpath/:learningPathId',
|
||||
component: () => import('../views/LearningPathOverview.vue'),
|
||||
},
|
||||
{
|
||||
path: '/learningpath/:learningPathId/circle/:circleId',
|
||||
component: () => import('../views/CircleView.vue'),
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue