hanbaoshan
2020-12-03 c587fbdad6f75ba05e5440b41be144bd335703aa
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",