路由相关 路由传值 url上不暴露值得方式传值 this.$router.push({name:'taskCenter', params:{id: 123, savePath: 123}}) //获取 $route: { handler(route) { console.log('route',route) const {id,savePath} = route.params } }, '/home/huan?uid=1¶m=2' const {uid,param} =this.$route.query '/home/huan/1/2' 待完成