|
@@ -431,8 +431,9 @@ export default {
|
|
|
getGraphy() {
|
|
|
this.scene = new LocationPointScene();
|
|
|
this.scene.selectContainer.connect('listChange', this, this.listChange)
|
|
|
- this.canvasLoading = true;
|
|
|
- if (this.floorMap.split('.')[1].toString() == 'png' || this.floorMap.split('.')[1].toString() == 'jpg') {
|
|
|
+ this.canvasLoading = true;
|
|
|
+ const temp = this.floorMap.split('.')[1];
|
|
|
+ if (temp && temp.toString().toLowerCase() == 'png' || temp.toString().toLowerCase() == 'jpg') {
|
|
|
let x = 0;
|
|
|
let y = 0;
|
|
|
let scale = 1;
|