Skip to content

Let's use AI to Earn!

我的钱包移动到个人头像下面,左侧列表太长

DESKTOP-EMF2SH4\Administrator72b65b592eff
diff --git a/src/layout/SysMenu/index.tsx b/src/layout/SysMenu/index.tsx
index 00ad749f..0442f77a 100644
--- a/src/layout/SysMenu/index.tsx
+++ b/src/layout/SysMenu/index.tsx
@@ -5,6 +5,7 @@ import Icon, {
UserOutlined,
PhoneOutlined,
IdcardOutlined,
+ WalletOutlined,
} from '@ant-design/icons';
import { Image, MenuProps } from 'antd';
import { Button, Dropdown } from 'antd';
@@ -16,12 +17,14 @@ import styles from './sysMenu.module.scss';
import defaultAvatar from '@/assets/user/defaultAvatar.jpg';
import Updatelog from '../UpdateLog';
import Feedback from '@/assets/svgs/user/feedback.svg?react';
+import { useNavigate } from 'react-router-dom';
const App: React.FC = () => {
const [appInfo, setAppInfo] = useState<{ version: string }>({
version: '',
});
const userStore = useUserStore();
+ const navigate = useNavigate();
async function getAppInfo() {
const res = await ipcAppInfo();
@@ -64,6 +67,24 @@ const App: React.FC = () => {
{
type: 'divider',
},
+ {
+ key: 'wallet',
+ label: (
+ <Button
+ type="text"
+ className="w-full text-left pl-0"
+ onClick={() => {
+ navigate('/finance/userWalletAccount');
+ }}
+ >
+ {' '}我的钱包
+ </Button>
+ ),
+ icon: <WalletOutlined className="text-[#a66ae4]" />,
+ },
+ {
+ type: 'divider',
+ },
{
key: '0',
label: (
diff --git a/src/router/index.tsx b/src/router/index.tsx
index 34ebb5e7..c1c432ce 100644
--- a/src/router/index.tsx
+++ b/src/router/index.tsx
@@ -151,12 +151,12 @@ export const router: CustomRouteObject[] = [
{
path: '/finance',
element: <Finance />,
- meta: { name: '钱包', icon: MoneyCollectOutlined },
+ // meta: { name: '钱包', icon: MoneyCollectOutlined },
children: [
{ path: 'userWalletRecord', element: <UserWalletRecord /> },
{ path: 'userWalletAccount', element: <UserWalletAccount /> },
{ path: 'expectedIncome', element: <ExpectedIncome /> },
- ],
+ ]
},
// {
// path: '/interaction',