vue3 路由传参接收不到,不知道是什么问题?-灵析社区

邦纳娜娜

vue3 路由传参地址栏不显示参数,接收也为空 父组件 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/8185be6934e75f8132c6d01631baf259.png) 子组件 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/4758ded879d22778d1a332a4565e99f4.png) 打印的结果 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/78507dd598884f41955394cf2e0f64df.png)

阅读量:25

点赞量:0

问AI
一一在debug
这里看起来没什么问题,要注意传数字0、null、undefined时就不会出现在路由上,结果导致取不到,需提前转为string格式