From 6f73a308ba5a8d55975262f66fdd27aa48b4899b Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Wed, 27 Aug 2025 22:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/utils/sse.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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;