uni-app map组件关于marker标记点动态设置的问题

marker是Array类型,赋值的时候只能对整个数组进行更改赋值,不能只改变内部的对象,亲测Vue.$set()也不行

this.marker = [

   {

      latitude: 39.90,

      longitude: 116.39,

      iconPath: '../../../static/location.png'

   }

]

猜你喜欢

转载自www.cnblogs.com/swordLaughsHeaven/p/13195601.html
今日推荐