From d42d3ece5734670e29378ade81f56c7601e82c09 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 24 Sep 2020 16:23:30 +0800
Subject: [PATCH] 天气与aqi查询接口更新
---
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