Commit 991a09f4 by CaIon

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

parent 4abe75fa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment