|
@@ -122,6 +122,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getMap() {
|
|
|
+ console.log('%c时间:', 'color:blue;background:#fff')
|
|
|
+ console.time('蜂鸟下载,解析')
|
|
|
window.fengmapData = new SFengParser(
|
|
|
'fengMap',
|
|
|
`${this.mapServerURL}/fmap/${this.fmapID}`,
|
|
@@ -141,6 +143,7 @@ export default {
|
|
|
window.fengmapData.loadTheme(`${this.mapServerURL}/webtheme/${this.fmapID}/${this.fmapID}.theme`).then((res) => {
|
|
|
this.SETHAVEFENGMAP(1)
|
|
|
})
|
|
|
+ console.timeEnd('蜂鸟下载,解析')
|
|
|
// 缓存楼层数据
|
|
|
if (dataArr.length) {
|
|
|
setFloor({ plazaId: this.plazaId }, dataArr)
|
|
@@ -209,6 +212,9 @@ export default {
|
|
|
window.fengmapData = null
|
|
|
}
|
|
|
},
|
|
|
+ $route(to, from) {
|
|
|
+ console.log(to, from)
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|