URL: /AAA/id
传参:this.$router.push("/AAA/" + id);
路由:path: '/AAA/:id',
获取:this.id = this.$route.params.id;
URL: /BBB?id=id
传参:this.$router.push({ path: "/BBB", query: { id: id } });
路由:path: '/BBB',
获取:this.id = this.$route.query.id;
URL: /AAA/id
传参:this.$router.push("/AAA/" + id);
路由:path: '/AAA/:id',
获取:this.id = this.$route.params.id;
URL: /BBB?id=id
传参:this.$router.push({ path: "/BBB", query: { id: id } });
路由:path: '/BBB',
获取:this.id = this.$route.query.id;
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。