ZSWYD

vue路由传参显式隐式

显式

this.$router.push({
	path:'/home',
	query:{
		id
	}
})

隐式

this.$router.push({
	name:'home',
	params:{
		id
	}
})

posted on 2022-09-15 22:44  苏舒  阅读(260)  评论(0)    收藏  举报

导航