|
@@ -1,7 +1,11 @@
|
|
|
import { Layout, Menu } from 'antd';
|
|
|
import { useEffect, useState } from 'react';
|
|
|
import { Outlet, Link, useLocation } from 'react-router-dom';
|
|
|
-import { HomeOutlined, EllipsisOutlined } from '@ant-design/icons';
|
|
|
+import {
|
|
|
+ HomeOutlined,
|
|
|
+ EllipsisOutlined,
|
|
|
+ ProfileOutlined,
|
|
|
+} from '@ant-design/icons';
|
|
|
|
|
|
import './index.scss';
|
|
|
|
|
@@ -43,6 +47,12 @@ function LayoutAdmin() {
|
|
|
label: <Link to="/about">关于</Link>,
|
|
|
url: '/about',
|
|
|
},
|
|
|
+ {
|
|
|
+ key: '03',
|
|
|
+ icon: <ProfileOutlined />,
|
|
|
+ label: <Link to="/goods/list">商品列表</Link>,
|
|
|
+ url: '/goods/list',
|
|
|
+ },
|
|
|
]);
|
|
|
|
|
|
let { pathname } = useLocation();
|