From 908e04cba9d953ff3fbe698b1f4db423f9d97ecb Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Wed, 26 Mar 2025 18:29:46 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/drone-web-manage

---
 .env.development             |    2 +-
 .env.production              |    2 +-
 src/websocket/util/config.js |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.env.development b/.env.development
index 886b661..19098ed 100644
--- a/.env.development
+++ b/.env.development
@@ -12,5 +12,5 @@
 # 服务地址
 VITE_APP_URL = https://wrj.shuixiongit.com/api
 # 域名
-VITE_APP_AREA_NAME =  https://wrj.shuixiongit.com
+VITE_APP_AREA_NAME =  wss://wrj.shuixiongit.com
 
diff --git a/.env.production b/.env.production
index 6b68b7e..62fb53b 100644
--- a/.env.production
+++ b/.env.production
@@ -17,4 +17,4 @@
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip
 # 域名
-VITE_APP_AREA_NAME =  https://aisky.org.cn
+VITE_APP_AREA_NAME =  wss://aisky.org.cn
diff --git a/src/websocket/util/config.js b/src/websocket/util/config.js
index b22c14d..881e8be 100644
--- a/src/websocket/util/config.js
+++ b/src/websocket/util/config.js
@@ -14,6 +14,6 @@
 export function getWebsocketUrl() {
   const token = getToken();
   // const url = CURRENT_CONFIG.websocketURL
-  const url = `wss://${import.meta.env.VITE_APP_AREA_NAME}/drone-wss/api/v1/ws?x-auth-token=${encodeURI(token)}`;
+  const url = `${import.meta.env.VITE_APP_AREA_NAME}/drone-wss/api/v1/ws?x-auth-token=${encodeURI(token)}`;
   return url;
 }

--
Gitblit v1.9.3