|
@@ -3080,7 +3080,10 @@ findUserByDept
|
|
|
// 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)
|