|
|
@ -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)} |
|
|
|
</div> |
|
|
|
</Content> |
|
|
|
<Footer |
|
|
|