/** When your routing table is too long, you can split it into small modules **/ import Layout from '@/layout' const adRouter = { path: '/ad', component: Layout, redirect: '/ad/edit', name: 'ad', meta: { title: '广告投放', icon: 'ad', }, children: [ // { // path: 'list', // component: () => import('@/views/ad/list'), // Parent router-view // name: 'adList', // meta: {title: '广告管理'}, // }, { path: 'edit', component: () => import('@/views/ad/edit'), // Parent router-view name: 'adEdit', meta: { title: '广告编辑', }, }, ], } export default adRouter