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

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

this.marker = [

   {

      latitude: 39.90,

      longitude: 116.39,

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

   }

]

posted @ 2020-06-26 17:22  尘世英雄  阅读(10264)  评论(4编辑  收藏  举报