import { RouterView } from 'vue-router'; export default { path: '/wagon', name: 'Wagon', meta: { title: 'wagons', icon: 'vn:trolley', moduleName: 'Wagon', }, component: RouterView, redirect: { name: 'WagonMain' }, menus: { main: ['WagonList', 'WagonTypeList', 'WagonCounter', 'WagonTray'], card: [], }, children: [ { path: '/wagon', name: 'WagonMain', component: () => import('src/components/common/VnModule.vue'), redirect: { name: 'WagonList' }, children: [ { path: 'list', name: 'WagonList', meta: { title: 'wagonsList', icon: 'vn:trolley', }, component: () => import('src/pages/Wagon/WagonList.vue'), }, { path: 'create', name: 'WagonCreate', meta: { title: 'wagonCreate', icon: 'create', }, component: () => import('src/pages/Wagon/WagonCreate.vue'), }, { path: ':id/edit', name: 'WagonEdit', meta: { title: 'wagonEdit', icon: 'edit', }, component: () => import('src/pages/Wagon/WagonCreate.vue'), }, { path: 'counter', name: 'WagonCounter', meta: { title: 'wagonCounter', icon: 'add_circle', }, component: () => import('src/pages/Wagon/WagonCounter.vue'), }, ], }, { path: '/wagon/type', name: 'WagonTypeMain', component: () => import('src/components/common/VnModule.vue'), redirect: { name: 'WagonTypeList' }, children: [ { path: 'list', name: 'WagonTypeList', meta: { title: 'typesList', icon: 'view_list', }, component: () => import('src/pages/Wagon/Type/WagonTypeList.vue'), }, { path: 'create', name: 'WagonTypeCreate', meta: { title: 'typeCreate', icon: 'create', }, component: () => import('src/pages/Wagon/Type/WagonTypeList.vue'), }, { path: ':id/edit', name: 'WagonTypeEdit', meta: { title: 'typeEdit', icon: 'edit', }, component: () => import('src/pages/Wagon/Type/WagonTypeEdit.vue'), }, ], }, ], };