diff --git a/frontend/src/components/layout/AppBottomNav.vue b/frontend/src/components/layout/AppBottomNav.vue index 3f900f3..e311c47 100644 --- a/frontend/src/components/layout/AppBottomNav.vue +++ b/frontend/src/components/layout/AppBottomNav.vue @@ -30,8 +30,8 @@ const navItems = computed(() => { }) function isActive(to: string) { - if (to === '/') return route.path === '/' - return route.path.startsWith(to) && to !== '/' + if (to === '/' || to === '/teacher' || to === '/admin') return route.path === to + return route.path.startsWith(to) } diff --git a/frontend/src/components/layout/AppSidebar.vue b/frontend/src/components/layout/AppSidebar.vue index 0dd5933..23502aa 100644 --- a/frontend/src/components/layout/AppSidebar.vue +++ b/frontend/src/components/layout/AppSidebar.vue @@ -33,8 +33,8 @@ const visible = computed(() => ) function isActive(to: string) { - if (to === '/') return route.path === '/' - return route.path.startsWith(to) && to !== '/' + if (to === '/' || to === '/teacher' || to === '/admin') return route.path === to + return route.path.startsWith(to) } diff --git a/frontend/src/views/admin/AdminUsersView.vue b/frontend/src/views/admin/AdminUsersView.vue index 6499b0d..6c7fd06 100644 --- a/frontend/src/views/admin/AdminUsersView.vue +++ b/frontend/src/views/admin/AdminUsersView.vue @@ -90,7 +90,6 @@ onMounted(fetchUsers)

Пользователи

-