vue-router 传参的方式 query 和params

query 类似于get请求的传参方法 就是 ? 这种形式的 https://i.cnblogs.com/EditPosts.aspx?opt=1

今天发现了个重要的问题  

params传递参数的时候不能用path跳转 , 可以用name

this.$router.push({ name: '审批主页',params:item})  这种的可以传过去
但是this.$router.push({ path: '/xxx',params:item})  这种就不行
 

相关文章:

  • 2021-10-05
  • 2021-10-28
  • 2022-12-23
  • 2020-04-16
  • 2021-11-07
  • 2021-11-03
  • 2022-12-23
  • 2022-01-27
猜你喜欢
  • 2021-04-02
  • 2022-01-05
  • 2021-11-07
相关资源
相似解决方案