随笔分类 -  vueRouter

vue-router: No match found for location with path '/xxx/yyy'
摘要:我遇到这个问题的原因是路由的name名字重复,导致找不到跳转的路由 { path: 'store', name: 'store', component: StoreVue } //就是这里的name和别的重复了,应该避免 阅读全文

posted @ 2022-04-13 18:35 In-6026 阅读(249) 评论(0) 推荐(0)

路由——动态路由
摘要:##js跳转 navigator(id) { //路由参数 this.$router.push(`/news/${id}`) //是router不是route,router是用于跳转等**行为**的,route适用于查看路由**信息**的 //get传值 this.$router.push(`/ne 阅读全文

posted @ 2022-03-07 12:55 In-6026 阅读(57) 评论(0) 推荐(0)

导航