feat: update Fluent Read link handling in sidebar to improve chat item filtering

This commit is contained in:
CaIon
2025-08-09 21:06:25 +08:00
parent 50f9195f2d
commit fd2ff2a973

View File

@@ -208,13 +208,13 @@ const SiderBar = ({ onNavigate = () => { } }) => {
if (typeof link !== 'string') continue; // 确保链接是字符串 if (typeof link !== 'string') continue; // 确保链接是字符串
if (link.startsWith('fluent')) { if (link.startsWith('fluent')) {
shouldSkip = true; shouldSkip = true;
continue; // 跳过 Fluent Read break; // 跳过 Fluent Read
} }
chat.text = key; chat.text = key;
chat.itemKey = 'chat' + i; chat.itemKey = 'chat' + i;
chat.to = '/console/chat/' + i; chat.to = '/console/chat/' + i;
} }
if (shouldSkip) continue; if (shouldSkip || !chat.text) continue; // 避免推入空项
chatItems.push(chat); chatItems.push(chat);
} }
setChatItems(chatItems); setChatItems(chatItems);