2023-03-10 17:55:01 +08:00
|
|
|
import { Route, Routes } from "react-router-dom";
|
2023-02-10 17:44:15 +08:00
|
|
|
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";
|
2023-02-10 17:44:15 +08:00
|
|
|
|
|
|
|
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>
|
2023-02-10 17:44:15 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|