From fd2ff2a973f8964fac3a818f127d8b03225a8bbe Mon Sep 17 00:00:00 2001 From: CaIon Date: Sat, 9 Aug 2025 21:06:25 +0800 Subject: [PATCH] feat: update Fluent Read link handling in sidebar to improve chat item filtering --- web/src/components/layout/SiderBar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/layout/SiderBar.js b/web/src/components/layout/SiderBar.js index 66ae6350..985042ee 100644 --- a/web/src/components/layout/SiderBar.js +++ b/web/src/components/layout/SiderBar.js @@ -208,13 +208,13 @@ const SiderBar = ({ onNavigate = () => { } }) => { if (typeof link !== 'string') continue; // 确保链接是字符串 if (link.startsWith('fluent')) { shouldSkip = true; - continue; // 跳过 Fluent Read + break; // 跳过 Fluent Read } chat.text = key; chat.itemKey = 'chat' + i; chat.to = '/console/chat/' + i; } - if (shouldSkip) continue; + if (shouldSkip || !chat.text) continue; // 避免推入空项 chatItems.push(chat); } setChatItems(chatItems);