mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
系统设置增加重启
This commit is contained in:
+17
-10
@@ -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} />
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user