this.$router是路由跳转
this.$route是路由信息对象
3种跳转页面方式
http://ip:port/pathname?(传递数据)是
?是查询字段
第一种字节拼在标签中
this.$router.push("/login") 跳转
第二种 query 传参常用
this.$router是路由跳转
this.$route是路由信息对象
第三种动态传参
godetail
注册路由 name为动态路由服务
传递方式3中
案例第一种传参
目标页面代码