Vue中 this.$router.push用法

用this.$router.push完成页面跳转

Params

动态路由也是传递params的,所以在 this.$router.push() 方法中path不能和params一起使用,否则params将无效。需要用name来指定页面

在目标页面通过this.$route.params获取参数

 

 


版权声明:本文为qq_51519400原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。