亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

vue-router子路由默認視圖不顯示

vue-router子路由默認視圖不顯示

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

1 回答

?
蕭十郎

TA貢獻1815條經驗 獲得超13個贊

要有默認子路由,那父路由的名字name得去掉


查看完整回答
1 反對 回復 2018-11-05
  • 1 回答
  • 0 關注
  • 2095 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號