瀏覽代碼

fix(dashboard): 修正navbar组件prop传递方式

- 将leftIcon和leftText的undefined改为空字符串""
- 明确传递空值而非未定义,语义更清晰
- 虽然两种方式在渲染效果上相同,但空字符串更符合组件设计意图

🤖 Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 4 周之前
父節點
當前提交
e02f7f6ad3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mini-ui-packages/yongren-dashboard-ui/src/pages/Dashboard/Dashboard.tsx

+ 2 - 2
mini-ui-packages/yongren-dashboard-ui/src/pages/Dashboard/Dashboard.tsx

@@ -138,8 +138,8 @@ const Dashboard: React.FC = () => {
         {/* 导航栏 */}
         <Navbar
           title="企业仪表板"
-          leftIcon={undefined}
-          leftText={undefined}
+          leftIcon=""
+          leftText=""
           onClickLeft={() => {}}
           backgroundColor="bg-white"
           border={true}