页面跳转push跳转传参和取参

  • Post author:
  • Post category:其他


//页面跳转

this.$router.push({


name:“appleIndex”,

//query是传递的参数

query: { appid:123,name:123}

})

appleIndex页面获取参数如下

created() {


this.id = this. $ route.query.appid ? this.$ route .query.id : “”;

this.name = this. $ route.query.name? this.$ route .query.name: “”;

}



版权声明:本文为weixin_43883260原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。