有时候开发需要获取当前url的参数
完整url可以用
window.location.href
路由路径可以用
this.$route.path
路由路径参数
this.$route.params (params是参数名称) this.$route.query
this.$route.params (params是参数名称)
this.$route.query
name => params
path => query