Add new routes for shopping cart and checkout pages in market module

- Introduce routes for the Shopping Cart and Checkout pages, enhancing user navigation within the market module.
- Implement a redirect for the Market Dashboard to improve user flow.
- Add an alias for clearCheckout for consistency in the market store functions.
This commit is contained in:
padreug 2025-09-05 03:36:36 +02:00
parent a08fd284e4
commit dc6a9ed283
4 changed files with 429 additions and 0 deletions

View file

@ -90,6 +90,28 @@ export const marketModule: ModulePlugin = {
title: 'Market Dashboard',
requiresAuth: true
}
},
{
path: '/market-dashboard',
redirect: '/market/dashboard'
},
{
path: '/cart',
name: 'cart',
component: () => import('./views/CartPage.vue'),
meta: {
title: 'Shopping Cart',
requiresAuth: false
}
},
{
path: '/checkout/:stallId',
name: 'checkout',
component: () => import('./views/CheckoutPage.vue'),
meta: {
title: 'Checkout',
requiresAuth: false
}
}
] as RouteRecordRaw[],