Route shop browse through categories and catalogs, and align product detail with the mockup.

Customers can add items without a company-first path, and the detail page matches the card, badge, share, and footer layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-10 21:05:05 +03:30
co-authored by Cursor
parent c1acbebeb9
commit c81db8e620
21 changed files with 540 additions and 218 deletions
+7 -2
View File
@@ -121,8 +121,13 @@ const router = createRouter({
{
path: '/companies/:companyId/catalogs/:catalogId/products',
name: 'company-products',
component: () => import('@/views/products/ProductListView.vue'),
meta: { requiresAuth: true },
redirect: (to) => ({
path: '/products',
query: {
catalogId: String(to.params.catalogId ?? ''),
companyId: String(to.params.companyId ?? ''),
},
}),
},
{
path: '/cart',