vue中路由跳转的两种传值方式及区别:
一、 this.$router.push({
name:"路由名字",
params:{
id:"1",
name:"aaa"
}
})
这种在页面刷新数据丢失
二、 this.$router.push({
path:"路由路径",
query:{
id:"1",
name:"aaa"
}
})
这种在页面刷新数据还存在