Commit ae77b531 by CaIon

feat: 允许关闭绘图选项

parent 6504c5ba
...@@ -6,7 +6,7 @@ import {API, getLogo, getSystemName, isAdmin, isMobile, showSuccess} from '../he ...@@ -6,7 +6,7 @@ import {API, getLogo, getSystemName, isAdmin, isMobile, showSuccess} from '../he
import '../index.css'; import '../index.css';
import { import {
IconAt, IconCalendarClock,
IconHistogram, IconHistogram,
IconGift, IconGift,
IconKey, IconKey,
...@@ -75,10 +75,18 @@ let headerButtons = [ ...@@ -75,10 +75,18 @@ let headerButtons = [
icon: <IconHistogram/> icon: <IconHistogram/>
}, },
{ {
text: '数据看版',
itemKey: 'detail',
to: '/detail',
icon: <IconCalendarClock />,
className: localStorage.getItem('enable_data_export') === 'true'?'semi-navigation-item-normal':'tableHiddle',
},
{
text: '绘图', text: '绘图',
itemKey: 'midjourney', itemKey: 'midjourney',
to: '/midjourney', to: '/midjourney',
icon: <IconImage/> icon: <IconImage/>,
className: localStorage.getItem('enable_drawing') === 'true'?'semi-navigation-item-normal':'tableHiddle',
}, },
{ {
text: '设置', text: '设置',
...@@ -133,6 +141,7 @@ const SiderBar = () => { ...@@ -133,6 +141,7 @@ const SiderBar = () => {
setting: "/setting", setting: "/setting",
about: "/about", about: "/about",
chat: "/chat", chat: "/chat",
detail: "/detail",
}; };
return ( return (
<Link <Link
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment