//传参
this.$router.push({
	path:'/Show_blog',//地址,路由跳转  index里面的地址
	query:{//传的参数
		id:id,
		userName:name
	}
})

//取参
//在跳转到的那个页面
const id = this.$route.query.id
const userName = this.$route.query.userName
Logo

前往低代码交流专区

更多推荐