This commit is contained in:
魔方熊成祥
2026-04-29 21:38:18 +08:00
commit ba0458abe2
56 changed files with 10300 additions and 0 deletions

21
src/main.tsx Normal file
View File

@@ -0,0 +1,21 @@
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { App as AntdApp, ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import App from './App'
import { lightTheme } from '@/config/themes'
import './index.css'
dayjs.locale('zh-cn')
createRoot(document.getElementById('root')!).render(
<ConfigProvider locale={zhCN} theme={{ ...lightTheme, cssVar: true }}>
<AntdApp>
<BrowserRouter>
<App />
</BrowserRouter>
</AntdApp>
</ConfigProvider>
)