Vue 路由传参方式和路由监听

this.$router.push传递参数有2种方式: 传递参数  -- this.$router.push({path: ' 路由 ', query: {key: value}}) 参数取值  -- this.$route.query.key 使用这种方式,传递参数会拼接在路由后面,出现在地址栏. path---------》query   传递参数  -- this.$router.push(
相关文章
相关标签/搜索