Browse Source

图片上传

qinhouyu 2 năm trước cách đây
mục cha
commit
65269f9557
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  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)