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

上一篇:模块加载原理(第二种)


下一篇:python selenium Chrome模拟手机浏览器(十七)