diff --git a/src/App.jsx b/src/App.jsx index c018b2a..bc66500 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,6 +6,8 @@ import { TeamOutlined, UserOutlined, } from '@ant-design/icons' +import { useRoutes } from 'react-router-dom' +import routes from './router/index' import { Breadcrumb, Layout, Menu, theme } from 'antd' const { Header, Content, Footer, Sider } = Layout import Login from '@/views/Login' @@ -36,7 +38,7 @@ const App = () => { const { countStore } = useRootStore() const { count } = countStore const [collapsed, setCollapsed] = useState(false) - const [isLogin, setIsLogin] = useState(false) + const [isLogin, setIsLogin] = useState(true) const { token: { colorBgContainer }, } = theme.useToken() @@ -97,7 +99,7 @@ const App = () => { background: colorBgContainer, }} > - Bill is a cat. + {useRoutes(routes)}