mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-06-23 22:16:53 +08:00
✨ 添加cookie页面
This commit is contained in:
@@ -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() {
|
||||
</Breadcrumb.Item>
|
||||
</Breadcrumb>
|
||||
);
|
||||
} else if (path === '/home/cookie') {
|
||||
breadcrumbContent = (
|
||||
<Breadcrumb style={{ margin: '16px 0' }}>
|
||||
<Breadcrumb.Item>
|
||||
<IconUser />
|
||||
Cookie 管理
|
||||
</Breadcrumb.Item>
|
||||
</Breadcrumb>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Layout className="layout-collapse-demo">
|
||||
@@ -105,6 +119,10 @@ export default function Home() {
|
||||
<IconDashboard />
|
||||
调度权重
|
||||
</Menu.Item>
|
||||
<Menu.Item key="cookie">
|
||||
<IconUser />
|
||||
Cookie 管理
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
</Layout.Sider>
|
||||
<Layout.Content style={{ padding: '0 1em' }}>
|
||||
|
||||
Reference in New Issue
Block a user