Simplify manager cabinet flows

This commit is contained in:
Ruslan Bakiev
2026-04-03 19:23:08 +07:00
parent 1c19b06451
commit 1c2070b8d8
14 changed files with 1073 additions and 680 deletions

View File

@@ -21,6 +21,7 @@ const centerCapsule = computed<NavItem[]>(() => {
items.push(
{ to: '/clients', label: 'Клиенты' },
{ to: '/client-orders', label: 'Заказы клиентов' },
{ to: '/bonus-system', label: 'Бонусы' },
);
}
@@ -45,6 +46,9 @@ function isActive(path: string) {
if (path === '/client-orders') {
return route.path === '/client-orders' || route.path.startsWith('/client-orders/');
}
if (path === '/bonus-system') {
return route.path === '/bonus-system' || route.path.startsWith('/bonus-system/');
}
return route.path === path;
}
</script>