中英文切换 初始化
This commit is contained in:
@@ -11,6 +11,7 @@ import AlarmHistory from '../components/alerts/AlarmHistory';
|
||||
import AlarmStatistics from '../components/alerts/AlarmStatistics';
|
||||
import AlarmRules from '../components/alerts/AlarmRules';
|
||||
import AlarmSubscription from '../components/alerts/AlarmSubscription';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
|
||||
@@ -18,6 +19,7 @@ const { Header, Content } = Layout;
|
||||
const { Text } = Typography;
|
||||
|
||||
export default function AlarmCenterPage() {
|
||||
const { t } = useTranslation();
|
||||
const [activeTab, setActiveTab] = useState('overview');
|
||||
|
||||
|
||||
@@ -36,7 +38,7 @@ export default function AlarmCenterPage() {
|
||||
<Layout style={{ minHeight: '100vh', overflow: 'hidden' }}>
|
||||
<div style={{ display: 'flex', paddingBottom: "4px" }}>
|
||||
<div style={{ padding: '8px 12px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>告警中心</Typography.Title>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>{t('router.alerts')}</Typography.Title>
|
||||
<Text type="secondary" style={{ fontSize: '12px' }}>告警处置闭环、规则管理与事件中心</Text>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user