标签:col color query push path host amp param code
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
标签:col color query push path host amp param code
原文地址:https://www.cnblogs.com/PeunZhang/p/12090469.html