NEZ-1408 fix:处理页面报错

This commit is contained in:
zhangyu
2021-12-06 17:31:35 +08:00
parent f3527df12c
commit 0faf22e2f2
18 changed files with 55 additions and 55 deletions

View File

@@ -1424,7 +1424,7 @@ export default {
const limit = geo[0].scaleLimit
const value = zoom + val
if (value <= limit.max && value >= limit.min) {
this.$refs.dataCenterMap.setOption({ geo: { zoom: value } })
this.$refs.dataCenterMap && this.$refs.dataCenterMap.setOption({ geo: { zoom: value } })
}
}
},