()
| 8 | import UpdateNotification from './components/common/UpdateNotification' |
| 9 | |
| 10 | function AppContent(): React.JSX.Element { |
| 11 | const { settings } = useSettingsStore() |
| 12 | |
| 13 | // 根据字体大小设置获取基础字号 |
| 14 | const getFontSize = () => { |
| 15 | switch (settings.fontSize) { |
| 16 | case 'small': |
| 17 | return 12 |
| 18 | case 'large': |
| 19 | return 16 |
| 20 | case 'medium': |
| 21 | default: |
| 22 | return 14 |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | return ( |
| 27 | <ConfigProvider |
| 28 | locale={zhCN} |
| 29 | theme={{ |
| 30 | algorithm: theme.defaultAlgorithm, |
| 31 | token: { |
| 32 | colorPrimary: '#1890ff', |
| 33 | fontSize: getFontSize() |
| 34 | } |
| 35 | }} |
| 36 | > |
| 37 | <AntdApp> |
| 38 | <UpdateNotification /> |
| 39 | <ZustandAppProvider> |
| 40 | <Layout /> |
| 41 | </ZustandAppProvider> |
| 42 | </AntdApp> |
| 43 | </ConfigProvider> |
| 44 | ) |
| 45 | } |
| 46 | |
| 47 | function App(): React.JSX.Element { |
| 48 | return ( |
nothing calls this directly
no test coverage detected