2025-11-21 04:32:08 +08:00
|
|
|
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
|
|
|
|
import { ConfigProvider } from 'antd'
|
|
|
|
|
import zhCN from 'antd/locale/zh_CN'
|
|
|
|
|
import Layout from './components/Layout'
|
|
|
|
|
import AccountList from './pages/AccountList'
|
|
|
|
|
import AccountImport from './pages/AccountImport'
|
|
|
|
|
import AccountDetail from './pages/AccountDetail'
|
2025-11-26 22:26:50 +08:00
|
|
|
import AccountEdit from './pages/AccountEdit'
|
2025-11-21 04:32:08 +08:00
|
|
|
import LeaderList from './pages/LeaderList'
|
|
|
|
|
import LeaderAdd from './pages/LeaderAdd'
|
|
|
|
|
import ConfigPage from './pages/ConfigPage'
|
2025-11-27 01:13:52 +08:00
|
|
|
import PositionList from './pages/PositionList'
|
2025-11-21 04:32:08 +08:00
|
|
|
import Statistics from './pages/Statistics'
|
|
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
|
return (
|
|
|
|
|
<ConfigProvider locale={zhCN}>
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<Layout>
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<AccountList />} />
|
|
|
|
|
<Route path="/accounts" element={<AccountList />} />
|
|
|
|
|
<Route path="/accounts/import" element={<AccountImport />} />
|
|
|
|
|
<Route path="/accounts/detail" element={<AccountDetail />} />
|
2025-11-26 22:26:50 +08:00
|
|
|
<Route path="/accounts/edit" element={<AccountEdit />} />
|
2025-11-21 04:32:08 +08:00
|
|
|
<Route path="/leaders" element={<LeaderList />} />
|
|
|
|
|
<Route path="/leaders/add" element={<LeaderAdd />} />
|
|
|
|
|
<Route path="/config" element={<ConfigPage />} />
|
2025-11-27 01:13:52 +08:00
|
|
|
<Route path="/positions" element={<PositionList />} />
|
2025-11-21 04:32:08 +08:00
|
|
|
<Route path="/statistics" element={<Statistics />} />
|
|
|
|
|
</Routes>
|
|
|
|
|
</Layout>
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
</ConfigProvider>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default App
|
|
|
|
|
|