优化SSE链接配置
This commit is contained in:
@@ -3,8 +3,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill';
|
|||||||
import { generateUUID } from './uuidUtils';
|
import { generateUUID } from './uuidUtils';
|
||||||
import { getToken } from '@/utils/auth';
|
import { getToken } from '@/utils/auth';
|
||||||
|
|
||||||
// const defaultServerUrl = 'http://192.168.1.38:18081/sse';
|
const defaultServerUrl = import.meta.env.VITE_APP_BASE_URL + '/sse';
|
||||||
const defaultServerUrl = 'http://127.0.0.1:18081/sse';
|
|
||||||
|
|
||||||
interface EventData {
|
interface EventData {
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user