import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ { path: '/order', component: Layout, redirect: '/order/orderList', name: 'Order', meta: { title: '委托单', icon: 'ep:key', auth: '/business/manager/order', }, children: [ { path: 'orderList', name: 'OrderList', component: () => import('@/views/order/list.vue'), meta: { title: '委托单', auth: '/business/manager/order', icon: 'ep:key', sidebar: false, breadcrumb: false, activeMenu: '/order', }, }, { path: ':type/:id?', name: 'OrderDetail', component: () => import('@/views/order/detail.vue'), meta: { title: '委托单', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/order/list', }, }, ], }, ] export default routes