feat: repositorios, servicios, UI completa con rutas, Capacitor Android sync
This commit is contained in:
32
apps/toldo-app/src/router/index.ts
Normal file
32
apps/toldo-app/src/router/index.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import Layout from '../components/Layout.vue';
|
||||
import Home from '../views/Home.vue';
|
||||
import Inventario from '../views/Inventario.vue';
|
||||
import Ventas from '../views/Ventas.vue';
|
||||
import Gastos from '../views/Gastos.vue';
|
||||
import Cuadre from '../views/Cuadre.vue';
|
||||
import Reportes from '../views/Reportes.vue';
|
||||
import Ajustes from '../views/Ajustes.vue';
|
||||
import Exportar from '../views/Exportar.vue';
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
children: [
|
||||
{ path: '', component: Home },
|
||||
{ path: 'inventario', component: Inventario },
|
||||
{ path: 'ventas', component: Ventas },
|
||||
{ path: 'gastos', component: Gastos },
|
||||
{ path: 'cuadre', component: Cuadre },
|
||||
{ path: 'reportes', component: Reportes },
|
||||
{ path: 'ajustes', component: Ajustes },
|
||||
{ path: 'exportar', component: Exportar },
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user