![](https://i-blog.csdnimg.cn/blog_migrate/8b0f5f95f2c954c19f6d6a525d2ad196.png)
来来来直接上解决方案
问题原因就是里面有特殊符号
转换string类型时 用encodeURIComponent编码包一下
encodeURIComponent(JSON.stringify(item))
转换成原来的类型decodeURIComponent先解码回来再转换回来
JSON.parse(decodeURIComponent(router.shopInfo) || "{}")
来来来直接上解决方案
转换string类型时 用encodeURIComponent编码包一下
encodeURIComponent(JSON.stringify(item))
转换成原来的类型decodeURIComponent先解码回来再转换回来
JSON.parse(decodeURIComponent(router.shopInfo) || "{}")