From b21fc542a0ae534eeec6b08a0f97281440eba1ab Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Mon, 21 Sep 2020 16:07:14 +0800
Subject: [PATCH] update
---
src/main/webapp/view/newmap.jsp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index c2e63d8..d411bc4 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/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();
+ }
};
- 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>
--
Gitblit v1.8.0