diff --git a/web/src/App.tsx b/web/src/App.tsx index 280f701..452d34c 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -1,5 +1,7 @@ import React from 'react' import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' +import { ConfigProvider } from 'antd' +import zhCN from 'antd/locale/zh_CN' import TabBarLayout from './components/TabBarLayout' import ProtectedRoute from './components/ProtectedRoute' import AdminRoute from './components/AdminRoute' @@ -13,32 +15,34 @@ import QuestionList from './pages/QuestionList' const App: React.FC = () => { return ( - - - {/* 带TabBar的页面,需要登录保护 */} - }> - } /> - } /> - + + + + {/* 带TabBar的页面,需要登录保护 */} + }> + } /> + } /> + - {/* 不带TabBar的页面,但需要登录保护 */} - } /> - } /> + {/* 不带TabBar的页面,但需要登录保护 */} + } /> + } /> - {/* 题库管理页面,需要管理员权限 */} - - - - - - } /> + {/* 题库管理页面,需要管理员权限 */} + + + + + + } /> - {/* 不带TabBar的页面,不需要登录保护 */} - } /> - } /> - - + {/* 不带TabBar的页面,不需要登录保护 */} + } /> + } /> + + + ) }