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:
parent
a08fd284e4
commit
dc6a9ed283
4 changed files with 429 additions and 0 deletions
|
|
@ -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[],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue