首页 > 其他 > 详细

this.$router.push

时间:2019-08-17 09:05:18      阅读:72      评论:0      收藏:0      [点我收藏+]

push 后面可以是对象,也可以是字符串:

// 字符串
this.$router.push(‘/home/first‘)
// 对象
this.$router.push({ path: ‘/home/first‘ })
// 命名的路由
this.$router.push({ name: ‘home‘, params: { userId: wise }})

例如:

// 点击事件里面写
this.$router.push({ name: ‘distributesList‘, query: { ruleForm: this.ruleForm }})


this.$router.push

原文:https://www.cnblogs.com/fan-1994716/p/11366797.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!