路由结构2.视图结构一级路由 <li><router-link :to="{name:'home'}" tag="a">待支付订单</router-link></li>
<li><router-link :to="{name:'all'}" tag="a">所有订单</router-link></li>
<li><router-link :to="{name:'my'}" tag="a">我的债权</router-link></li>
<li><router-link :to="{name:'apply'}" tag="a">申请债权</router-link></li>二级路由 <span style="margin-left: 30px"><router-link :to="{name:'cr'}">债权方</router-link></span>
<span><router-link :to="{name:'dt'}">债务方</router-link></span>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.最后出现了子路由的默认视图不显示,但是也没有报错,想问下这到底是哪有问题
添加回答
举报
0/150
提交
取消