首先我们来看打印的结果,
上面是console.log(this.
route)的打印结果
另外记住传递用router
方式一:
this.
router.push({path: ‘/my/profile’, query: queryData});
接收用route
params:
this.name = this.
route.params.age;
query:
this.queryData = this.$route.query
首先我们来看打印的结果,
上面是console.log(this.
route)的打印结果
另外记住传递用router
方式一:
this.
router.push({path: ‘/my/profile’, query: queryData});
接收用route
params:
this.name = this.
route.params.age;
query:
this.queryData = this.$route.query