vue 路由跳转取不到params参数
Posted do more
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue 路由跳转取不到params参数相关的知识,希望对你有一定的参考价值。
使用params时,不能使用path,应使用name跳转,
例:
1 this.$router.push({ 2 name: ‘xxx‘, 3 params: { 4 a: ‘xxx‘, 5 b: ‘xxxx‘ 6 } 7 })
以上是关于vue 路由跳转取不到params参数的主要内容,如果未能解决你的问题,请参考以下文章
VUE学习--路由跳转方式||路由跳转携带参数方式||目标路由接受参数方式