
来来来直接上解决方案
问题原因就是里面有特殊符号
转换string类型时 用encodeURIComponent编码包一下
encodeURIComponent(JSON.stringify(item))
转换成原来的类型decodeURIComponent先解码回来再转换回来
JSON.parse(decodeURIComponent(router.shopInfo) || "{}")
来来来直接上解决方案
转换string类型时 用encodeURIComponent编码包一下
encodeURIComponent(JSON.stringify(item))
转换成原来的类型decodeURIComponent先解码回来再转换回来
JSON.parse(decodeURIComponent(router.shopInfo) || "{}")