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:
+7
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user