From 24251c27284064562897711f2d60f88118c871b0 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Wed, 9 Oct 2024 22:25:32 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20(admin)=20=E5=B0=86site=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=A7=BB=E5=8A=A8=E5=88=B0=E4=BE=A7=E8=BE=B9=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-frontend/src/pages/Home.tsx | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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} + + ))} + 调度权重