Browse Source

fix : 导航区域的二级按钮显示文本
Fixes #13

sw 1 week ago
parent
commit
ef5ab8fa48
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/layouts/BusinessZone.tsx

+ 1 - 5
src/layouts/BusinessZone.tsx

@@ -190,11 +190,7 @@ const BusinessZone: React.FC<BusinessZoneProps> = ({ onMenuClick }) => {
                       <MeButton
                         key={child.key}
                         onClick={() => onMenuClick?.(child.key)}
-                        username={
-                          typeof child.label === 'string'
-                            ? child.label
-                            : undefined
-                        }
+                        username={child.label}
                       />
                     ))}
                   </Space>