fix: 处理页面报错信息

This commit is contained in:
zhangyu
2021-11-26 18:14:45 +08:00
parent 2b3dbebf30
commit 8a4e97ed09
3 changed files with 33 additions and 17 deletions

View File

@@ -695,6 +695,9 @@ export default {
promiseArr.push(pensPromise(item, arr, index))
})
Promise.all(promiseArr).then((res) => {
if (!getTopology(this.topologyIndex)) {
return
}
getTopology(this.topologyIndex).open(data)
getTopology(this.topologyIndex).lock(1)
this.objChange = false
@@ -719,7 +722,7 @@ export default {
getTopology(this.topologyIndex).centerView()
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
setTimeout(() => {
getTopology(this.topologyIndex)&&getTopology(this.topologyIndex).data.pens.forEach(item => {
getTopology(this.topologyIndex) && getTopology(this.topologyIndex).data.pens.forEach(item => {
if (item.animatePlay) {
item.stopAnimate()
setTimeout(() => {