diff --git a/src/pages/layout/proContent/index.jsx b/src/pages/layout/proContent/index.jsx index 5a2b0301..798aef8c 100644 --- a/src/pages/layout/proContent/index.jsx +++ b/src/pages/layout/proContent/index.jsx @@ -18,13 +18,13 @@ const ProContent = () => { content: null, key: '', closable: false, - path: '', + path: '' }) const pathRef = useRef('') const { pathname, search } = useLocation() const { - token: { colorBgContainer, colorBgLayout }, + token: { colorBgContainer, colorBgLayout } } = theme.useToken() useEffect(() => { const { tabKey, title, element } = getKeyName(pathname) @@ -36,7 +36,7 @@ const ProContent = () => { content: element, key: tabKey, closable: tabKey !== '/', - path: newPath, + path: newPath }) setTabActiveKey(tabKey) // eslint-disable-next-line react-hooks/exhaustive-deps @@ -44,13 +44,13 @@ const ProContent = () => { return ( -
+
- + -