1.param
给将要跳转到的路由加占位
{ path:"/search/:keyword", component:Search, meta:{ show:true } },
goSearch(){ this.$router.push("/search/" + this.keyword) }
标签:传参,search,两种,keyword,show,跳转,路由 From: https://www.cnblogs.com/sgj191024/p/17583621.html
1.param
给将要跳转到的路由加占位
{ path:"/search/:keyword", component:Search, meta:{ show:true } },
goSearch(){ this.$router.push("/search/" + this.keyword) }
标签:传参,search,两种,keyword,show,跳转,路由 From: https://www.cnblogs.com/sgj191024/p/17583621.html