feat(catalog): unify home with catalog and add clear qty controls

This commit is contained in:
Ruslan Bakiev
2026-04-03 12:17:05 +07:00
parent 71d2b176e9
commit f977896647
6 changed files with 500 additions and 601 deletions

View File

@@ -8,7 +8,7 @@ const route = useRoute();
const { totalItems } = useClientCart();
const centerCapsule: NavItem[] = [
{ to: '/products', label: 'Каталог' },
{ to: '/', label: 'Каталог' },
{ to: '/orders', label: 'Мои заказы' },
];
@@ -18,6 +18,9 @@ const rightCapsule: NavItem[] = [
];
function isActive(path: string) {
if (path === '/') {
return route.path === '/' || route.path.startsWith('/products');
}
if (path === '/orders') {
return route.path === '/orders' || route.path.startsWith('/orders/');
}