From cba57f5d6dbe22120579fbe803444ad86814cc8f Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Tue, 6 Jan 2026 12:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E8=82=A1=E8=AE=BA=E5=9D=9B=E9=87=8D?= =?UTF-8?q?=E5=81=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ChannelSidebar/index.tsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/views/StockCommunity/components/ChannelSidebar/index.tsx b/src/views/StockCommunity/components/ChannelSidebar/index.tsx index 296161de..398887da 100644 --- a/src/views/StockCommunity/components/ChannelSidebar/index.tsx +++ b/src/views/StockCommunity/components/ChannelSidebar/index.tsx @@ -623,18 +623,11 @@ const ChannelSidebar: React.FC = ({ '& option[value=""]': { color: 'gray.500' }, }} > - {categories - .filter(cat => !cat.isSystem) // 过滤掉系统分类 - .map(category => ( - - )) - } - {/* 如果没有用户分类,显示默认选项 */} - {categories.filter(cat => !cat.isSystem).length === 0 && ( - - )} + {categories.map(category => ( + + ))}