jinpengyong
2020-09-21 b21fc542a0ae534eeec6b08a0f97281440eba1ab
src/main/webapp/view/newmap.jsp
@@ -709,11 +709,11 @@
                /*  if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") {
                      moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
                  }*/
            };
            if ($("#close").html()=="CloseMq") {
                ws.close();
            }
            };
            //关闭事件
            ws.onclose = function () {
                $("#close").html("websocket已经关闭");
@@ -843,10 +843,8 @@
            $("#close").html(methodName);
            moralMap.showSensors(jsonData);
        } else if ("CloseMq" == methodName) {
            //window.location = "http://www.baidu.com"
            $("#close").html(methodName);
        }
    }
</script>