import { route } from 'quasar/wrappers' import { createRouter, createWebHashHistory } from 'vue-router' const routes = [ { path: '/', component: () => import('src/layouts/MainLayout.vue'), children: [ { path: '', component: () => import('src/pages/DashboardPage.vue') }, { path: 'clients', component: () => import('src/pages/ClientsPage.vue') }, { path: 'clients/:id', component: () => import('src/pages/ClientDetailPage.vue'), props: true }, { path: 'tickets', component: () => import('src/pages/TicketsPage.vue') }, { path: 'equipe', component: () => import('src/pages/EquipePage.vue') }, { path: 'rapports', component: () => import('src/pages/RapportsPage.vue') }, { path: 'ocr', component: () => import('src/pages/OcrPage.vue') }, { path: 'settings', component: () => import('src/pages/SettingsPage.vue') }, { path: 'telephony', component: () => import('src/pages/TelephonyPage.vue') }, { path: 'dispatch', component: () => import('src/pages/DispatchPage.vue') }, ], }, ] export default route(function () { return createRouter({ history: createWebHashHistory(process.env.VUE_ROUTER_BASE), routes, }) })