Dev #11
@@ -30,8 +30,8 @@ const navItems = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function isActive(to: string) {
|
function isActive(to: string) {
|
||||||
if (to === '/') return route.path === '/'
|
if (to === '/' || to === '/teacher' || to === '/admin') return route.path === to
|
||||||
return route.path.startsWith(to) && to !== '/'
|
return route.path.startsWith(to)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ const visible = computed(() =>
|
|||||||
)
|
)
|
||||||
|
|
||||||
function isActive(to: string) {
|
function isActive(to: string) {
|
||||||
if (to === '/') return route.path === '/'
|
if (to === '/' || to === '/teacher' || to === '/admin') return route.path === to
|
||||||
return route.path.startsWith(to) && to !== '/'
|
return route.path.startsWith(to)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ onMounted(fetchUsers)
|
|||||||
<div class="admin-users page-content">
|
<div class="admin-users page-content">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1 class="page-title">Пользователи</h1>
|
<h1 class="page-title">Пользователи</h1>
|
||||||
<button class="btn-primary">Добавить пользователя</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<GlassCard>
|
<GlassCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user