用this.$router.push完成页面跳转
Params
动态路由也是传递params的,所以在 this.$router.push() 方法中path不能和params一起使用,否则params将无效。需要用name来指定页面
在目标页面通过this.$route.params获取参数
用this.$router.push完成页面跳转
Params
动态路由也是传递params的,所以在 this.$router.push() 方法中path不能和params一起使用,否则params将无效。需要用name来指定页面
在目标页面通过this.$route.params获取参数