vue中配置路由

vue開發中配置路由,若是隻有一級的寫法:vue

{spa

path: '/answer',component

component: Layout,路由

redirect: 'noredirect',開發

children: [it

{ path: 'index', component: _import('gzjp/answer/index'), name: 'answer', meta: { title: 'answer', icon: 'answer', role: ['question_list'] }}io

]import

},配置

相關文章
相關標籤/搜索