From c99cad106ef5be9f818e45d385dfdcec29ce19e5 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期四, 03 十二月 2020 16:52:24 +0800
Subject: [PATCH] 修复绘制多边形撤销错误的bug

---
 src/components/canvas/index.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/canvas/index.vue b/src/components/canvas/index.vue
index aa5f89f..c26ef7b 100644
--- a/src/components/canvas/index.vue
+++ b/src/components/canvas/index.vue
@@ -165,11 +165,12 @@
       // this.$emit('changeBaseImg',this.currentCameraId)
       this.$emit('changeLoading', true)
       if (this.currentCameraId) {
+        let _this = this;
         await updateSnapshot(this.currentCameraId)
           .then(res => {
-            if (res.data.cameraId === this.currentCameraId) {
+            if (res.data.cameraId === _this.currentCameraId) {
               this.baseImg = res.data.snapshotUrl;
-              this.$emit('refresh', res.data.snapshotUrl,this.currentCameraId)
+              this.$emit('refresh', res.data.snapshotUrl, _this.currentCameraId)
               this.$forceUpdate()
               this.$notify({
                 type: "success",

--
Gitblit v1.8.0