refactor: make operation settings separated from system settings

This commit is contained in:
JustSong
2023-06-19 09:53:56 +08:00
parent 72ea805f84
commit 75545a1f47
3 changed files with 292 additions and 191 deletions

View File

@@ -4,6 +4,7 @@ import SystemSetting from '../../components/SystemSetting';
import { isRoot } from '../../helpers';
import OtherSetting from '../../components/OtherSetting';
import PersonalSetting from '../../components/PersonalSetting';
import OperationSetting from '../../components/OperationSetting';
const Setting = () => {
let panes = [
@@ -18,6 +19,14 @@ const Setting = () => {
];
if (isRoot()) {
panes.push({
menuItem: '运营设置',
render: () => (
<Tab.Pane attached={false}>
<OperationSetting />
</Tab.Pane>
)
});
panes.push({
menuItem: '系统设置',
render: () => (