路由結構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.最后出現了子路由的默認視圖不顯示,但是也沒有報錯,想問下這到底是哪有問題
vue-router子路由默認視圖不顯示
慕森卡
2018-10-18 11:18:51