this.$router.push({ path: 'test', query: { type: 2, detail: '哈哈' } })
params要用name来引入
this.$router.push({ name: 'test', query: { type: 2, detail: '哈哈' } })
http://localhost:8080/detail?type=0&detail=哈哈
http://localhost:8080/detail
如对本文有疑问, 点击进行留言回复!!
offset、client、scroll (width,height、left,top、X,Y)
网友评论