From 1075860848d14e3d6d1506b91d9c9039433bf4cc Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 03 三月 2025 17:40:13 +0800
Subject: [PATCH] 合并附件和业务表格

---
 src/utils/sse/SSEClient.ts |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/utils/sse/SSEClient.ts b/src/utils/sse/SSEClient.ts
index 5a21369..5e727f7 100644
--- a/src/utils/sse/SSEClient.ts
+++ b/src/utils/sse/SSEClient.ts
@@ -3,6 +3,7 @@
 import { SESSION_KEY } from '../request';
 import { Local } from '../storage';
 import { debounce } from 'lodash-es';
+import { Logger } from '/@/model/logger/Logger';
 
 export interface SSEOptions {
 	/** 閲嶈瘯寤惰繜(ms) */
@@ -92,11 +93,12 @@
 		if (!this.eventSource) return;
 
 		this.eventSource.onopen = () => {
-			console.log('杩炴帴鎴愬姛');
+			Logger.info('eventSource onopen锛氳繛鎺ユ垚鍔�');
 			this.callbacks.onOpen?.();
 		};
 
 		this.eventSource.onmessage = (event) => {
+			Logger.info('eventSource onmessage锛歕n\n'+ event.data);
 			try {
 				const data = JSON.parse(event.data);
 				// 妫�鏌ユ槸鍚︽槸缁撴潫鏍囪
@@ -115,6 +117,7 @@
 		};
 
 		this.eventSource.onerror = async (error) => {
+			Logger.error('eventSource onerror锛歕n\n'+ error);
 		};
 	}
 

--
Gitblit v1.9.3