|
@@ -71,7 +71,8 @@ export default {
|
|
|
this.loading = true
|
|
|
this.floorid = floorid
|
|
|
this.mapSize()
|
|
|
- this.$refs.canvasFun.isShow = false
|
|
|
+ this.$refs.canvasFun.isShow = false;
|
|
|
+ console.log('haveFengMap',this.haveFengMap)
|
|
|
setTimeout(() => {
|
|
|
if (this.haveFengMap) {
|
|
|
this.clearGraphy()
|
|
@@ -81,6 +82,8 @@ export default {
|
|
|
this.canvasID = `canvas${this.id}`
|
|
|
}
|
|
|
this.parserData(floorid)
|
|
|
+ }else{
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
}, 100)
|
|
|
},
|
|
@@ -219,6 +222,8 @@ export default {
|
|
|
if (this.$refs.canvasFun) {
|
|
|
this.$refs.canvasFun.everyScale = this.view.scale
|
|
|
}
|
|
|
+ }).catch(()=>{
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
},
|
|
|
clearGraphy() {
|