From 259509a4598f0516f583a4529e87c521d6f99450 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 23 六月 2025 09:39:42 +0800 Subject: [PATCH] 1 --- zy-acs-flow/src/config/setting.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/config/setting.js b/zy-acs-flow/src/config/setting.js index 83fea86..05cd956 100644 --- a/zy-acs-flow/src/config/setting.js +++ b/zy-acs-flow/src/config/setting.js @@ -3,14 +3,14 @@ export const PORT = import.meta.env.COOL_BASE_PORT; -export const API_BASE_URL = 'http://' + IP + ':' + PORT + ''; - -export const WEBSOCKET_BASE_URL = 'ws://' + IP + ':' + PORT + ''; +export const WEBSOCKET_BASE_URL = `${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}`; export const PREFIX_BASE_URL = '/api/'; export const HANDLE_APP_KEY = 'xltys1995'; +export const VERIFY_PASSWORD = 'root'; + export const SPA_NAME = 'COOL'; export const SPA_VERSION = '1'; -- Gitblit v1.9.1