diff --git a/admin-frontend/src/App.tsx b/admin-frontend/src/App.tsx index 10ccaf6..36f0a29 100644 --- a/admin-frontend/src/App.tsx +++ b/admin-frontend/src/App.tsx @@ -9,6 +9,7 @@ import SubscribeManager from './features/subsribeConfigManager/SubscribeManager' import WeightConfig from './features/weightConfig/WeightManager'; import Home from './pages/Home'; import Unauthed from './pages/Unauthed'; +import CookieManager from './features/cookieManager/cookieManager'; function App() { const dispatch = useAppDispatch(); @@ -46,6 +47,10 @@ function App() { path: 'weight', element: , }, + { + path: 'cookie', + element: , + }, ], }, ], { basename: '/bison' }); diff --git a/admin-frontend/src/features/cookieManager/cookieManager.tsx b/admin-frontend/src/features/cookieManager/cookieManager.tsx new file mode 100644 index 0000000..7757999 --- /dev/null +++ b/admin-frontend/src/features/cookieManager/cookieManager.tsx @@ -0,0 +1,5 @@ +import React from 'react'; + +export default function CookieManager() { + return
下个版本再写啦啦啦啦
; +} diff --git a/admin-frontend/src/pages/Home.tsx b/admin-frontend/src/pages/Home.tsx index 2c676b4..ec7f2e1 100644 --- a/admin-frontend/src/pages/Home.tsx +++ b/admin-frontend/src/pages/Home.tsx @@ -1,6 +1,6 @@ import React, { ReactNode, useEffect, useState } from 'react'; import { Breadcrumb, Layout, Menu } from '@arco-design/web-react'; -import { IconRobot, IconDashboard } from '@arco-design/web-react/icon'; +import { IconRobot, IconDashboard, IconUser } from '@arco-design/web-react/icon'; import './Home.css'; // import SubscribeManager from '../features/subsribeConfigManager/SubscribeManager'; import { @@ -23,6 +23,9 @@ export default function Home() { if (path !== '/home/groups' && !path.startsWith('/home/groups/') && path !== '/home/weight') { navigate('/home/groups'); } + if (path === '/home/cookie') { + navigate('/home/cookie'); + } }, [path]); let currentKey = ''; @@ -40,6 +43,8 @@ export default function Home() { navigate('/home/groups'); } else if (tab === 'weight') { navigate('/home/weight'); + } else if (tab === 'cookie') { + navigate('/home/cookie'); } }; @@ -80,6 +85,15 @@ export default function Home() { ); + } else if (path === '/home/cookie') { + breadcrumbContent = ( + + + + Cookie 管理 + + + ); } return ( @@ -105,6 +119,10 @@ export default function Home() { 调度权重 + + + Cookie 管理 +