// push参数为字符串
this.$router.push('/hello')
// 参数为对象
this.$router.push({
path: '/hello' })
// 对象中有query属性,相当于发送了一次get请求,请求参数会显示在浏览器地址栏中
this
Vue中this.$router.push(参数) 实现页面跳转
最新推荐文章于 2023-12-22 10:31:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
// push参数为字符串
this.$router.push('/hello')
// 参数为对象
this.$router.push({
path: '/hello' })
// 对象中有query属性,相当于发送了一次get请求,请求参数会显示在浏览器地址栏中
this