src/main/webapp/static/js/console.js
@@ -90,13 +90,15 @@ } // 楼层 for (let i = 0; i < areas.length;i++) { let stnss = areas[i].stns let floor = areas[i].text floorId = areas[i].id var position = (i+1)*100 floorBtn = "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>" if (areas.length = 1) { console.log(mapInfo.areas[0].floors.length) if (mapInfo.areas[0].floors.length == 1) { floorBtnss = '' } else { floorBtnss = floorBtnss + floorBtn