路由结构
{
path: '/my',
name: 'my',
component: require('./components/my.vue'),
children:[
{
path: '/',
name: 'cr',
component: require('./common/vue/table.vue'),
},
{
path: 'dt',
name: 'dt',
component: require('./common/vue/table.vue'),
}
]
}
2.视图结构
一级路由
待支付订单
所有订单
我的债权
申请债权
二级路由
债权方
债务方
3.警告提示
[vue-router] Named Route 'my' has a default child route.
When navigating to this named route (:to="{name: 'my'"), 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.
4.最后出现了子路由的默认视图不显示,但是也没有报错,想问下这到底是哪有问题
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
要有默认子路由,那父路由的名字name得去掉