我想把首页的data数据通过路由传值到详情页
请会vue 帮我看看,实在是解决不了了,现在我的详情页都是静态的
带个对象?先转成字符串this.$router.push({path: '/Product', query: {obj: JSON.stringify(item)}})
接收用JSON.parseconst query = this.$route.query.objconsole.log(JSON.parse(query))
报什么错呀