排除了把routes写错等原因后,发现是要在index.html中也要加入 <router-view></router-view>
<div id="app"> <router-view></router-view> </div>
本文标题: router-view不渲染
本文链接:https://www.haomeiwen.com/subject/abyjcxtx.html
网友评论