From f6d0f192c74d157b12b9414aa8fdbb9f37635c1b Mon Sep 17 00:00:00 2001
From: tony.cheng <chengmingwei_1984122@126.com>
Date: Fri, 13 Mar 2026 10:25:38 +0800
Subject: [PATCH] fix: 修复当事人类型名称字段兼容性,支持createTime/createdTime/start_time
---
web-app/src/components/common/OutboundCallWidget.jsx | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/web-app/src/components/common/OutboundCallWidget.jsx b/web-app/src/components/common/OutboundCallWidget.jsx
index df9ffe7..b629583 100644
--- a/web-app/src/components/common/OutboundCallWidget.jsx
+++ b/web-app/src/components/common/OutboundCallWidget.jsx
@@ -335,6 +335,9 @@
// 定时轮询通话状态
useEffect(() => {
+ // 组件挂载时设置为 true
+ isMountedRef.current = true;
+
// 初始加载
fetchCallStatus();
@@ -393,6 +396,11 @@
return true;
});
+ // 如果没有活跃任务且不可见,不渲染任何内容
+ if (activeCalls.length === 0 && !isVisible) {
+ return null;
+ }
+
// 如果最小化,显示AI客服图标
if (isMinimized) {
return (
--
Gitblit v1.8.0