<span
v-if="feedback==''"
class="enter_complete"
@click="$router.push({path:'/enterInfo',query:{id:alreadyThing.id, frrdBackInfo: alreadyThing}})"
>反馈信息</span>
以上情况在刷新页面后
1526650-20200818094900969-1653312304.png 1526650-20200818094916495-1581819016.png
解决方法:
传值前先把Json转为字符串,接受的时候转换为Json,这样刷新后就不会出现[onject Object]
<span
v-if="feedback==''"
class="enter_complete"
@click="$router.push({path:'/enterInfo',query:{id:alreadyThing.id, frrdBackInfo: JSON.stringify(alreadyThing)}})"
>反馈信息</span>
//接收
JSON.parse(this.$route.query.frrdBackInfo)
网友评论