Main.vue:
<router-link :to="{name:'Home'}">首页</router-link>
路由:
报错如下:
为什么使用 :to="{name:'Home'}" 会报错,而普通的 to="/home" 却没问题?
慕码人2483693
相关分类