Vue --- router,params和query传递参数并接收
2024-03-27r o u t e r 为 V u e R o u t e r 实 例 , 想 要 导 航 到 不 同 U R L , 则 使 用 router为VueRouter实例,想要导航到不同URL,则使用router为VueRouter实例,想要导航到不同URL,则使用router.push方法。通过 params 传递参数,如果我们想获取 id 的参数值,可以通过 this.$route.params.id。通过路由属性配置传参我们可以用 this.$route.params.id 来获取到 id 的值。_如何接收router query的数据