diff --git a/admin-frontend/src/pages/Home.tsx b/admin-frontend/src/pages/Home.tsx index 88f07c0..0332914 100644 --- a/admin-frontend/src/pages/Home.tsx +++ b/admin-frontend/src/pages/Home.tsx @@ -9,6 +9,7 @@ import { } from 'react-router-dom'; import { useAppSelector } from '../app/hooks'; import { selectIsLogin } from '../features/auth/authSlice'; +import { selectSiteConf } from '../features/globalConf/globalConfSlice'; export default function Home() { const location = useLocation(); @@ -103,6 +104,10 @@ export default function Home() { ); } + const MenuItem = Menu.Item; + const { SubMenu } = Menu; + const siteConf = useAppSelector(selectSiteConf); + return ( @@ -125,10 +130,21 @@ export default function Home() { 订阅管理 - - - Cookie 管理 - + + + Cookie 管理 + + )} + > + {Object.values(siteConf).filter((site) => site.enable_cookie).map((site) => ( + + {site.name} + + ))} + 调度权重