From 5d0d653b11011c532b08fe741fcbb582746d33ef Mon Sep 17 00:00:00 2001 From: tao Date: Tue, 30 Sep 2025 15:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96SSE=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/useSSE.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/useSSE.ts b/src/utils/useSSE.ts index 1ace2a8..83220eb 100644 --- a/src/utils/useSSE.ts +++ b/src/utils/useSSE.ts @@ -3,8 +3,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill'; import { generateUUID } from './uuidUtils'; import { getToken } from '@/utils/auth'; -// const defaultServerUrl = 'http://192.168.1.38:18081/sse'; -const defaultServerUrl = 'http://127.0.0.1:18081/sse'; +const defaultServerUrl = import.meta.env.VITE_APP_BASE_URL + '/sse'; interface EventData { timestamp: string;