3***@qq.com
3***@qq.com
  • 发布:2020-07-15 15:13
  • 更新:2020-07-17 13:33
  • 阅读:1849

map组件, 绑定的:markers,动态赋值后,不能渲染到地图,报错TypeError: Converting circular structure to JSON

分类:uni-app

TypeError: Converting circular structure to JSON
15:06:11.255 --> starting at object with constructor 'm'
15:06:11.276 | property 'bubble' -> object with constructor 'p'
15:06:11.297 --- property 'marker' closes the circle at view.umd.min.js:1
15:06:15.246 TypeError: Converting circular structure to JSON
15:06:15.267 --> starting at object with constructor 'm'
15:06:15.287 | property 'bubble' -> object with constructor 'p'
15:06:15.308 --- property 'marker' closes the circle at view.umd.min.js:1

marker 初始赋值可以渲染,但是之后值变化后,就渲染不了了

2020-07-15 15:13 负责人:无 分享
已邀请:
DCloud_uniAD_HDX
3***@qq.com

3***@qq.com (作者)

更新了编辑器,问题解决了

  • 本社区最菜

    请问你是用vue还是nvue。我的没报错,赋值上去就是没显示!也用了别人说的有数据再加载地图,还是没显示!也是初始值能渲染,动态的不行,编辑器是最新的。能看看你的代码吗

    2020-11-06 21:16

  • 1***@qq.com

    +1,markers动态赋值之后数据是变化了,视图还是没变

    2021-07-28 09:32

  • z***@yitiangroup.com.cn

    回复 1***@qq.com: 请问解决了么、也遇到同样的问题了,用$set也不变

    2022-01-05 16:57

该问题目前已经被锁定, 无法添加新回复