优化SSE链接配置

This commit is contained in:
tao
2025-09-30 15:47:21 +08:00
parent 39f0d1e126
commit 5d0d653b11

View File

@@ -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;