暂存,修改navigate和添加图片

This commit is contained in:
2024-10-12 12:38:19 +08:00
parent 929aaebf20
commit 3eaa94eb46
29 changed files with 244 additions and 58 deletions

View File

@@ -15,7 +15,7 @@ import {
SmileOutlined,
SwitcherOutlined,
} from '@ant-design/icons';
import { useNavigate } from 'react-router';
import { useNewNavigate } from '../navicate';
const meun = [
{
title: 'Home',
@@ -69,7 +69,7 @@ const meun = [
];
export const LayoutMenu = () => {
const { open, setOpen } = useLayoutStore(useShallow((state) => ({ open: state.open, setOpen: state.setOpen })));
const navigate = useNavigate();
const navigate = useNewNavigate();
return (
<div className={clsx('w-full h-full absolute z-20', !open && 'hidden')}>
<div