diff --git a/src/pages/layout/proSecNav/index.jsx b/src/pages/layout/proSecNav/index.jsx
index cc49e541..3c5f88dd 100644
--- a/src/pages/layout/proSecNav/index.jsx
+++ b/src/pages/layout/proSecNav/index.jsx
@@ -10,7 +10,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
- QrcodeOutlined,
+ QrcodeOutlined
} from '@ant-design/icons'
import styles from './index.module.less'
@@ -19,7 +19,7 @@ const pathSubmenu = {
'/home': ['home'],
'/coupons/add': ['/sub-act', '/sub-coupons'],
'/coupons/edit': ['/sub-act', '/sub-coupons'],
- '/product': ['/sub-act', '/sub-coupons'],
+ '/product': ['/sub-act', '/sub-coupons']
}
const ProSecNav = () => {
@@ -45,7 +45,7 @@ const ProSecNav = () => {
useEffect(() => {
const selectedPathKey = pathname
setSelectedKeys([selectedPathKey])
- setOpenKeys(isOpenChange ? openKeys : (pathSubmenu[pathname] ?? openKeys))
+ setOpenKeys(isOpenChange ? openKeys : pathSubmenu[pathname] ?? openKeys)
}, [pathname, openKeys, isOpenChange])
const onOpenChange = (keys) => {
@@ -99,11 +99,11 @@ const ProSecNav = () => {
icon: ,
children: [
{ label: 'Vue', key: '/coupons/add' },
- { label: 'Angular', key: '/coupons/edit' },
- ],
+ { label: 'Angular', key: '/coupons/edit' }
+ ]
},
- { label: '后端技术栈', key: '/product', icon: },
- ],
+ { label: '后端技术栈', key: '/product', icon: }
+ ]
},
{
label: '构建工具',
@@ -111,25 +111,25 @@ const ProSecNav = () => {
icon: ,
children: [
{ label: 'Webpack', key: '/coupons/list' },
- { label: 'Vite', key: '/order/list' },
- ],
+ { label: 'Vite', key: '/order/list' }
+ ]
},
{
label: 'Error',
key: '/sub-error',
icon: ,
- children: [{ label: 'ErrorBoundary', key: '/error' }],
- },
+ children: [{ label: 'ErrorBoundary', key: '/error' }]
+ }
]
return (