Simplify manager cabinet flows
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user