页面路由有这样的配置就会报上面的错误:
{
path: '/',
name: 'index',
component: Index
}, {
path: '/index',
name: 'index',
component: Index
},
解决办法:
{
path: '/',
redirect: {
name: 'index'
}
}, {
path: '/index',
name: 'index',
component: Index
}
网友评论