通过
this.$router.push(name:‘要跳到的页面’,query:{ojtId:id,appColum:pemUserId})
this.$router.push({path:'nonintelligentElectricityDetail',
query:{deviceName:row.deviceName,roomName:row.roomName,companyName:row.companyName}})
在下一个页面中这样去获取上个页面传过来的值
created(){
var query = this.$route.query;
}
created(){
let query = this.$route.query;
this.title.deviceName = query.deviceName;
this.title.roomName = query.roomName;
this.title.companyName = query.companyName
},
原文链接:https://juejin.im/post/5b03b9876fb9a07abf72d87f