web-backset.cn/apps/admin/src/App.tsx

21 lines
605 B
TypeScript
Raw Normal View History

2023-03-10 17:55:01 +08:00
import { Route, Routes } from "react-router-dom";
import "./assets/less/common.less";
2023-03-06 16:41:00 +08:00
import Layout from "./layout";
import Login from "./view/Login";
2023-03-06 17:57:41 +08:00
import { ConfigProvider as AntDesignConfigProvider } from "antd";
2023-03-10 17:55:01 +08:00
import zhCN from "antd/locale/zh_CN";
function App() {
return (
2023-03-06 17:57:41 +08:00
<AntDesignConfigProvider locale={zhCN}>
<Routes>
2023-03-13 22:25:43 +08:00
<Route index key={"login"} path={"/"} element={<Login />} />
2023-03-06 17:57:41 +08:00
<Route key={"dash"} path={"/*"} element={<Layout />} />
<Route path="*" element={<span>404</span>} />
</Routes>
</AntDesignConfigProvider>
);
}
export default App;