1、打开新页签并传参
this.$router.push({
path:'/model/model_detail',
query: {id: modelId}
})
2、新页面中接参
this.modelId = this.$route.query.id;
(注意:接参用this.$route 而不是 this.$router)
1、打开新页签并传参
this.$router.push({
path:'/model/model_detail',
query: {id: modelId}
})
2、新页面中接参
this.modelId = this.$route.query.id;
(注意:接参用this.$route 而不是 this.$router)
评论 (0)