Files
yhy-mager/frontend/src/router.ts
xiewenjun 68a2b4d892
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled
fix: export payment client types for production build
Co-Authored-By: Craft Agent <agents-noreply@craft.do>
2026-10-15 09:39:26 +08:00

14 lines
880 B
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
import Overview from './views/Overview.vue'
import CustomerPortal from './views/CustomerPortal.vue'
import Checkout from './views/Checkout.vue'
export default createRouter({
history: createWebHistory(),
routes: [
...[{path:'/',view:'dashboard'},{path:'/licenses',view:'licenses'},{path:'/customers',view:'customers'},{path:'/products',view:'products'},{path:'/orders',view:'orders'},{path:'/payments',view:'payments'},{path:'/releases',view:'releases'},{path:'/integration',view:'integration'},{path:'/audit',view:'audit'},{path:'/settings',view:'settings'},{path:'/admins',view:'admins'}].map(({path,view})=>({path,component:Overview,meta:{view}})),
{path:'/checkout',component:Checkout,meta:{public:true}},
{path:'/customer',component:CustomerPortal},
{path:'/:pathMatch(.*)*',redirect:'/'}
]
})