系统设置增加重启

This commit is contained in:
whyour
2024-01-22 23:36:11 +08:00
parent 06f861baaf
commit 48d1fba699
5 changed files with 63 additions and 36 deletions
+17 -10
View File
@@ -75,11 +75,19 @@ const Setting = () => {
title: intl.get('权限'),
dataIndex: 'scopes',
key: 'scopes',
width: '40%',
width: 500,
render: (text: string, record: any) => {
return record.scopes.map((scope: any) => {
return <Tag key={scope}>{(config.scopesMap as any)[scope]}</Tag>;
});
return (
<div style={{ display: 'flex', gap: 4, flexWrap: 'wrap' }}>
{record.scopes.map((scope: any) => {
return (
<Tag style={{ marginRight: 0 }} key={scope}>
{(config.scopesMap as any)[scope]}
</Tag>
);
})}
</div>
);
},
},
{
@@ -348,7 +356,9 @@ const Setting = () => {
{
key: 'syslog',
label: intl.get('系统日志'),
children: <SystemLog data={systemLogData} height={height} theme={theme}/>,
children: (
<SystemLog data={systemLogData} height={height} theme={theme} />
),
},
{
key: 'login',
@@ -358,16 +368,13 @@ const Setting = () => {
{
key: 'dependence',
label: intl.get('依赖设置'),
children: <Dependence />
children: <Dependence />,
},
{
key: 'other',
label: intl.get('其他设置'),
children: (
<Other
reloadTheme={reloadTheme}
systemInfo={systemInfo}
/>
<Other reloadTheme={reloadTheme} systemInfo={systemInfo} />
),
},
{