优化SSE链接配置
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user