qinhouyu před 2 roky
rodič
revize
65269f9557
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 3 1
      src/views/eventdetailsdialog.vue
  2. 3 1
      src/views/firespread.vue

+ 3 - 1
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')
-      canvasBox.removeChild(toolbar)
+      if (toolbar!=null) {
+        canvasBox.removeChild(toolbar)
+      }
       // 获取父级的宽高
       const width = parseInt(window.getComputedStyle(canvasBox).width)
       const height = parseInt(window.getComputedStyle(canvasBox).height)

+ 3 - 1
src/views/firespread.vue

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