瀏覽代碼

修改截图上传

JX.LI 2 年之前
父節點
當前提交
19c6548814
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/views/eventdetailsdialog.vue
  2. 2 0
      src/views/firespread.vue

+ 2 - 0
src/views/eventdetailsdialog.vue

@@ -2406,7 +2406,9 @@ console.log(this.dutysystemTableData)
       // let canvasBox = this.$refs.imageTofile
       let canvasBox = document.getElementById('forestWarmSuperMap')
       let toolbar = document.getElementById('toolbar')
+      if(toolbar != null){
       canvasBox.removeChild(toolbar)
+      }
       // 获取父级的宽高
       const width = parseInt(window.getComputedStyle(canvasBox).width)
       const height = parseInt(window.getComputedStyle(canvasBox).height)

+ 2 - 0
src/views/firespread.vue

@@ -3055,7 +3055,9 @@ export default {
       // let canvasBox = this.$refs.imageTofile
       let canvasBox = document.getElementById('forestWarmSuperMap')
       let toolbar = document.getElementById('toolbar')
+      if(toolbar!= null){
       canvasBox.removeChild(toolbar)
+      }
       // 获取父级的宽高
       const width = parseInt(window.getComputedStyle(canvasBox).width)
       const height = parseInt(window.getComputedStyle(canvasBox).height)