|
@ -9,6 +9,7 @@ import { |
|
|
import { Breadcrumb, Layout, Menu, theme } from 'antd' |
|
|
import { Breadcrumb, Layout, Menu, theme } from 'antd' |
|
|
const { Header, Content, Footer, Sider } = Layout |
|
|
const { Header, Content, Footer, Sider } = Layout |
|
|
import Login from '@/views/Login' |
|
|
import Login from '@/views/Login' |
|
|
|
|
|
import { useRootStore } from '@/store' |
|
|
function getItem(label, key, icon, children) { |
|
|
function getItem(label, key, icon, children) { |
|
|
return { |
|
|
return { |
|
|
key, |
|
|
key, |
|
@ -32,6 +33,8 @@ const items = [ |
|
|
getItem('Files', '9', <FileOutlined />), |
|
|
getItem('Files', '9', <FileOutlined />), |
|
|
] |
|
|
] |
|
|
const App = () => { |
|
|
const App = () => { |
|
|
|
|
|
const { countStore } = useRootStore() |
|
|
|
|
|
const { count } = countStore |
|
|
const [collapsed, setCollapsed] = useState(false) |
|
|
const [collapsed, setCollapsed] = useState(false) |
|
|
const [isLogin, setIsLogin] = useState(false) |
|
|
const [isLogin, setIsLogin] = useState(false) |
|
|
const { |
|
|
const { |
|
@ -58,7 +61,7 @@ const App = () => { |
|
|
fontSize: '18px', |
|
|
fontSize: '18px', |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
Logo |
|
|
|
|
|
|
|
|
{count} |
|
|
</div> |
|
|
</div> |
|
|
<Menu |
|
|
<Menu |
|
|
theme='dark' |
|
|
theme='dark' |
|
|