feat: course list

This commit is contained in:
Jannat Patel
2023-12-05 22:39:00 +05:30
parent 644fb698d8
commit d00da31f84
108 changed files with 47452 additions and 56 deletions

View File

@@ -1,4 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import { usersStore } from '@/stores/user'
import { sessionStore } from '@/stores/session'
const routes = [
{
@@ -14,8 +16,13 @@ const routes = [
]
let router = createRouter({
history: createWebHistory('/lms'),
history: createWebHistory('/'),
routes,
})
router.beforeEach(async (to, from) => {
const { users } = usersStore()
await users.promise
})
export default router