|
@@ -152,11 +152,11 @@ export default {
|
|
|
},
|
|
|
//获取楼层数据
|
|
|
getFloorData() {
|
|
|
- console.log(this.floorData)
|
|
|
if (this.floorData && this.floorData.StructureInfo && this.floorData.StructureInfo.FloorMap) {
|
|
|
this.isdata = true
|
|
|
let floorMap = this.floorData.StructureInfo.FloorMap
|
|
|
- if (floorMap.split('.')[1].toString() == 'png' || floorMap.split('.')[1].toString() == 'jpg') {
|
|
|
+ const temp = floorMap.split('.')[1];
|
|
|
+ if (temp && (temp.toLowerCase() == 'png' || temp.toLowerCase() == 'jpg')) {
|
|
|
this.initGraphy(floorMap, 3)
|
|
|
} else {
|
|
|
this.initGraphy(floorMap, 2)
|