From 0bd5a0e5078341b0b251c09cd91b8365e4605047 Mon Sep 17 00:00:00 2001 From: weidong Date: Tue, 2 Jan 2024 16:34:40 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9https=E4=B8=8Bwebso?= =?UTF-8?q?cket=E5=BB=BA=E7=AB=8B=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sec-beidou/src/main/resources/templates/page/cmd_line.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sec-beidou/src/main/resources/templates/page/cmd_line.html b/sec-beidou/src/main/resources/templates/page/cmd_line.html index 0873df40..7a116e30 100644 --- a/sec-beidou/src/main/resources/templates/page/cmd_line.html +++ b/sec-beidou/src/main/resources/templates/page/cmd_line.html @@ -125,9 +125,7 @@ //建立webSocket连接 var webSocktPath; - if(basePath.indexOf("https") != -1) - webSocktPath = (basePath+"/websocket").replace("https","ws"); - else webSocktPath = (basePath+"/websocket").replace("http","ws"); + webSocktPath = (basePath+"/websocket").replace("http","ws"); var websocket = new WebSocket(webSocktPath); //打开webSokcet连接时,回调该函数