const routes = [ { path: '/login', name: 'login', meta: { title: '登录页面' }, component: () => import('@/views/account/login.vue') }, { path: '/logout', name: 'logout', meta: { title: '退出登录' }, component: () => import('@/views/account/logout.vue') }, { path: '/', component: () => import('@/layout/index.vue'), meta: { authorize: true, title: 'vue-project' }, children: [ { path: 'test-view-1-1', name: 'test-view-1-1', component: () => import('@/views/test-view-1-1/index.vue'), meta: { title: '测试页面1-1' } }, { path: 'test-view-1-2', name: 'test-view-1-2', component: () => import('@/views/test-view-1-2/index.vue'), meta: { title: '测试页面1-2' } }, { path: 'test-view-1-3', name: 'test-view-1-3', component: () => import('@/views/test-view-1-3/index.vue'), meta: { title: '测试页面1-3' } }, { path: 'test-view-2-1', name: 'test-view-2-1', component: () => import('@/views/test-view-2-1/index.vue'), meta: { title: '测试页面2-1' } }, { path: 'test-view-2-2', name: 'test-view-2-2', component: () => import('@/views/test-view-2-2/index.vue'), meta: { title: '测试页面2-2' } }, { path: 'test-view-2-3', name: 'test-view-2-3', component: () => import('@/views/test-view-2-3/index.vue'), meta: { title: '测试页面2-3' } }, { path: 'test-view-3-1', name: 'test-view-3-1', component: () => import('@/views/test-view-3-1/index.vue'), meta: { title: '测试页面3-1' } }, { path: 'test-view-3-2', name: 'test-view-3-2', component: () => import('@/views/test-view-3-2/index.vue'), meta: { title: '测试页面3-2' } }, { path: 'test-view-3-3', name: 'test-view-3-3', component: () => import('@/views/test-view-3-3/index.vue'), meta: { title: '测试页面3-3' } }, { path: 'test-view-4', name: 'test-view-4', component: () => import('@/views/test-view-4/index.vue'), meta: { title: '测试页面4' } } ] } ] export default routes