错误管理初始化
This commit is contained in:
@@ -9,7 +9,8 @@ import {
|
||||
KeyOutlined, AppstoreOutlined, BankOutlined,
|
||||
NotificationOutlined,
|
||||
ExperimentOutlined,
|
||||
EnvironmentOutlined
|
||||
EnvironmentOutlined,
|
||||
ExclamationCircleOutlined
|
||||
} from '@ant-design/icons';
|
||||
import UserRolePage from '../components/SystemSetting/UserPage';
|
||||
import MenuList from '../components/SystemSetting/MenuList';
|
||||
@@ -116,6 +117,9 @@ export default function SystemSettings() {
|
||||
if (item.path === '/systemSetting/devices') {
|
||||
return { key: 'devices', label: '设备管理', icon: <AppstoreOutlined /> };
|
||||
}
|
||||
if (item.path === '/systemSetting/errorManage') {
|
||||
return { key: 'errorManager', label: '错误管理', icon: <ExclamationCircleOutlined /> };
|
||||
}
|
||||
return null;
|
||||
}).filter(Boolean);
|
||||
|
||||
@@ -131,6 +135,7 @@ export default function SystemSettings() {
|
||||
const NoticePage = () => <div style={{ padding: 20 }}><h2>通知策略页面</h2></div>;
|
||||
const DataSafetyPage = () => <div style={{ padding: 20 }}><h2>数据与安全页面</h2></div>;
|
||||
const SystemMaintenancePage = () => <div style={{ padding: 20 }}><h2>系统维护页面</h2></div>;
|
||||
const ErrorManager = () => <div style={{ padding: 20 }}><h2>错误管理页面</h2></div>;
|
||||
const DefaultPage = () => <div style={{ padding: 20 }}><h2>请选择菜单</h2></div>;
|
||||
const renderTabContent = () => {
|
||||
switch (activeTab) {
|
||||
@@ -156,6 +161,8 @@ export default function SystemSettings() {
|
||||
return <OnlineUserPage />;
|
||||
case 'devices':
|
||||
return <DeviceManagementPage />;
|
||||
case "errorManager":
|
||||
return <ErrorManager />;
|
||||
default:
|
||||
return <DefaultPage />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user