赞
踩
[vue-router] Named Route 'index' has a default child route. When navigating to this named route (:to="{name: 'index'"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead
- export default new Router({
- routes: [
- {
- path: '/',
- name: 'home',
- component: ()=>import('@/components/pages/home'),
- children:[
- {
- path:'list',
- name: 'list',
- component: ()=>import('@/components/pages/menu/list'),
- }
- ]
- }
- ]
- })
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。