vue 如何传值到下一个页面
作者:互联网
通过
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
标签:deviceName,vue,companyName,roomName,query,row,传值,页面 来源: https://blog.csdn.net/ayanye/article/details/118726662