第一个页面
//点击按钮执行函数
gourl(){
this.$router.push({
path: '/demo2-page5',
// name: 'mallList',
query: {
pkid: this.pkid
}
})
第二个页面
//页面加载此函数
getParams() {
//取到路由带过来的参数
this.pkid = this.$route.query.pkid;
}