From 0ff899b40b5ef637164782a7dc15803c201cd69f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 26 Mar 2025 16:32:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6conf?= =?UTF-8?q?ig.js=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/default/config.js | 6 ++++-- src/views/perfManage/goldTarget/index.vue | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/default/config.js b/public/default/config.js index 5c85eb72..7eeaca4c 100644 --- a/public/default/config.js +++ b/public/default/config.js @@ -13,14 +13,16 @@ // baseUrl = protocol://ip:port // baseUrl = 'http://192.168.8.100:33030'; const protocol = window.location.protocol + let wsprotocol = "ws:" const hostname = window.location.hostname let host = `${hostname}:33030`; if (protocol === 'https:') { host = `${hostname}:33443`; + wsprotocol = "wss:" } // Service Address sessionStorage.setItem('baseUrl', `${protocol}//${host}`); // websocket Address - sessionStorage.setItem('wsUrl', `ws://${host}`); -})(); + sessionStorage.setItem('wsUrl', `${wsprotocol}//${host}`); +})(); \ No newline at end of file diff --git a/src/views/perfManage/goldTarget/index.vue b/src/views/perfManage/goldTarget/index.vue index 3a97da41..bf54e686 100644 --- a/src/views/perfManage/goldTarget/index.vue +++ b/src/views/perfManage/goldTarget/index.vue @@ -996,7 +996,6 @@ onBeforeUnmount(() => {