From f1360cc184810c1458af6577b9e43f32aca7b24d Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 16 一月 2025 14:18:37 +0800
Subject: [PATCH] 消息同步

---
 src/stores/global.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/stores/global.ts b/src/stores/global.ts
index 54d61a6..22d3d9a 100644
--- a/src/stores/global.ts
+++ b/src/stores/global.ts
@@ -1,4 +1,4 @@
-import { MAIN_URL } from '../constants';
+import { SSE_URL } from '../constants';
 import { accessSessionKey } from '../utils/request';
 import { SSEClient } from '../utils/sse/SSEClient';
 import { Local } from '../utils/storage';
@@ -9,10 +9,12 @@
  */
 const connectMsgSyncService = () => {
 	if (!Local.get(accessSessionKey)) return;
+	if (!SSE_URL) return;
 	// 鍒涘缓瀹炰緥
 	const sseClient = new SSEClient(
-		`${MAIN_URL}chat/connect_broadcast_chat`,
+		// `https://widev.cpolar.top/sse/chat/connect_broadcast_chat`,
 		// `${MAIN_URL}events`
+		SSE_URL
 	);
 	sseClient.connect({
 		websessionid: Local.get(accessSessionKey),

--
Gitblit v1.9.3