diff --git a/.env.development b/.env.development index c1b3fa0..2524c8a 100644 --- a/.env.development +++ b/.env.development @@ -12,7 +12,7 @@ VITE_APP_ENV = 'development' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.213:8899' # 朱银 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +VITE_APP_BASE_API = 'http://192.168.110.180:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 04103f7..897d3ac 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -20,12 +20,10 @@ export const initSSE = (url: any) => { }); watch(error, () => { - console.log('SSE connection error:', error.value); error.value = null; }); watch(data, () => { - console.log('🚀 ~ initSSE ~ data:', JSON.parse(data.value)); let label = ''; let route1 = ''; let detailId = ''; @@ -33,6 +31,9 @@ export const initSSE = (url: any) => { if (JSON.parse(data.value)) { const obj = JSON.parse(data.value); route1 = obj.type; + if (obj.type == 'count') { + return; + } label = obj.content; // detailId = obj.detailId; data.value = null;