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