Ver código fonte

修改截图上传

JX.LI 2 anos atrás
pai
commit
19c6548814
2 arquivos alterados com 4 adições e 0 exclusões
  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)