feat: Admin Home

This commit is contained in:
Jannat Patel
2025-08-22 16:47:25 +05:30
parent e0601c7b38
commit b8708382b1
9 changed files with 341 additions and 80 deletions

View File

@@ -258,6 +258,8 @@ router.beforeEach(async (to, from, next) => {
}
if (!isLoggedIn) {
if (to.name == 'Home') router.push({ name: 'Courses' })
await allowGuestAccess.promise
if (!allowGuestAccess.data) {
window.location.href = '/login'