From 27d1521eb54fd9fda4a8415b059df23d8db2a883 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Wed, 24 Jun 2020 11:28:29 +0800
Subject: [PATCH] update

---
 src/main/webapp/view/newmap.jsp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index 01abedf..7e39dbc 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/src/main/webapp/view/newmap.jsp
@@ -367,7 +367,6 @@
     //���������������
     (function ($) {
         var hostAndPort = document.location.host;
-        var hostAddress = hostAndPort.substr(0, hostAndPort.length - 4);
         var moralMap = window.moralMap;
         var params = $.parseJSON($("#mapParams").html());
         moralMap['params'] = params;
@@ -644,7 +643,7 @@
         if (typeof (WebSocket) === "undefined") {
             alert("������������������������WebSocket");
         } else {
-            ws = new WebSocket('ws://' + hostAddress + '8080/screen/webSocket/' + orgId + '&' + regionCode);
+            ws = new WebSocket('ws://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + regionCode);
             ws.onopen = function () {
             };
 

--
Gitblit v1.8.0