浏览代码

修改BUG

bill 4 年之前
父节点
当前提交
ed3b7af3d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      locat/components/image-transform/index.js

+ 1 - 1
locat/components/image-transform/index.js

@@ -471,8 +471,8 @@
                             if (this.imgCanvas) {
                                 ctx = this.imgCanvas.getContext('2d')
                                 ctx.clearRect(-10000, -10000, 10000, 10000)
+                                this.imgCanvas.imageLayer.refresh()
                             }
-                            this.imgCanvas.imageLayer.refresh()
                             await this.drawCanvas(imagesArray, [], {
                                 lat: this.lat,
                                 lon: this.lon