fix(ui): Улучшил точность активного состояния навигации и удалил кнопочку добавления пользователей
This commit is contained in:
@@ -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)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user