hanbaoshan
2020-11-05 69aa081ffb9ff71d52b9ddebc8a6d02c0a34f462
修复底图刷新传参失败的bug
1个文件已修改
5 ■■■■■ 已修改文件
src/components/canvas/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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",