From 61b35e3e6203cc43c444b85dae17daa5ce7b39b0 Mon Sep 17 00:00:00 2001
From: 18516761980 <56479841@qq.com>
Date: 星期三, 10 八月 2022 09:44:17 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/console.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js
index 611e6b7..eea1df2 100644
--- a/src/main/webapp/static/js/console.js
+++ b/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

--
Gitblit v1.9.1