mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-13 11:03:00 +08:00
✨ 添加cookie页面
This commit is contained in:
parent
43fb5231b8
commit
54c9020c36
@ -9,6 +9,7 @@ import SubscribeManager from './features/subsribeConfigManager/SubscribeManager'
|
|||||||
import WeightConfig from './features/weightConfig/WeightManager';
|
import WeightConfig from './features/weightConfig/WeightManager';
|
||||||
import Home from './pages/Home';
|
import Home from './pages/Home';
|
||||||
import Unauthed from './pages/Unauthed';
|
import Unauthed from './pages/Unauthed';
|
||||||
|
import CookieManager from './features/cookieManager/cookieManager';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
@ -46,6 +47,10 @@ function App() {
|
|||||||
path: 'weight',
|
path: 'weight',
|
||||||
element: <WeightConfig />,
|
element: <WeightConfig />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'cookie',
|
||||||
|
element: <CookieManager />,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
], { basename: '/bison' });
|
], { basename: '/bison' });
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
export default function CookieManager() {
|
||||||
|
return <div>下个版本再写啦啦啦啦</div>;
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ReactNode, useEffect, useState } from 'react';
|
import React, { ReactNode, useEffect, useState } from 'react';
|
||||||
import { Breadcrumb, Layout, Menu } from '@arco-design/web-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 './Home.css';
|
||||||
// import SubscribeManager from '../features/subsribeConfigManager/SubscribeManager';
|
// import SubscribeManager from '../features/subsribeConfigManager/SubscribeManager';
|
||||||
import {
|
import {
|
||||||
@ -23,6 +23,9 @@ export default function Home() {
|
|||||||
if (path !== '/home/groups' && !path.startsWith('/home/groups/') && path !== '/home/weight') {
|
if (path !== '/home/groups' && !path.startsWith('/home/groups/') && path !== '/home/weight') {
|
||||||
navigate('/home/groups');
|
navigate('/home/groups');
|
||||||
}
|
}
|
||||||
|
if (path === '/home/cookie') {
|
||||||
|
navigate('/home/cookie');
|
||||||
|
}
|
||||||
}, [path]);
|
}, [path]);
|
||||||
|
|
||||||
let currentKey = '';
|
let currentKey = '';
|
||||||
@ -40,6 +43,8 @@ export default function Home() {
|
|||||||
navigate('/home/groups');
|
navigate('/home/groups');
|
||||||
} else if (tab === 'weight') {
|
} else if (tab === 'weight') {
|
||||||
navigate('/home/weight');
|
navigate('/home/weight');
|
||||||
|
} else if (tab === 'cookie') {
|
||||||
|
navigate('/home/cookie');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -80,6 +85,15 @@ export default function Home() {
|
|||||||
</Breadcrumb.Item>
|
</Breadcrumb.Item>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
);
|
);
|
||||||
|
} else if (path === '/home/cookie') {
|
||||||
|
breadcrumbContent = (
|
||||||
|
<Breadcrumb style={{ margin: '16px 0' }}>
|
||||||
|
<Breadcrumb.Item>
|
||||||
|
<IconUser />
|
||||||
|
Cookie 管理
|
||||||
|
</Breadcrumb.Item>
|
||||||
|
</Breadcrumb>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Layout className="layout-collapse-demo">
|
<Layout className="layout-collapse-demo">
|
||||||
@ -105,6 +119,10 @@ export default function Home() {
|
|||||||
<IconDashboard />
|
<IconDashboard />
|
||||||
调度权重
|
调度权重
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
<Menu.Item key="cookie">
|
||||||
|
<IconUser />
|
||||||
|
Cookie 管理
|
||||||
|
</Menu.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
</Layout.Sider>
|
</Layout.Sider>
|
||||||
<Layout.Content style={{ padding: '0 1em' }}>
|
<Layout.Content style={{ padding: '0 1em' }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user