遇到問題是query傳對(duì)象參數(shù)后,刷新新頁(yè)面,數(shù)據(jù)變化為"[object Object]"
先來回顧一下vue路由傳參方式
第1種方法。使用path來匹配路由,然后通過query來傳遞參數(shù)
這種情況下 query傳遞的參數(shù)會(huì)顯示在url后面?id=?
```this.$router.push({
name: 'more',
query: {
value: this.value,
? }
})```
在另一頁(yè)this.$route.qurey.value取值