diff --git a/web/src/components/Layout/NsTree.tsx b/web/src/components/Layout/NsTree.tsx index 87181a395832033c43112fb76847b481ddbf5484..fe83c333d90516c5677260b714dfeffde7f56791 100644 --- a/web/src/components/Layout/NsTree.tsx +++ b/web/src/components/Layout/NsTree.tsx @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import { Tree, Spin, Input } from 'antd'; import PropTypes from 'prop-types'; import _ from 'lodash'; +import { injectIntl, WrappedComponentProps } from 'react-intl'; import * as config from '@common/config'; import { TreeNode } from '@interface'; import { renderTreeNodes } from './utils'; @@ -15,7 +16,7 @@ interface Props { onExpandedKeys: (expandedKeys: string[]) => void, } -export default class NsTree extends Component { +class NsTree extends Component { static defaultProps = { treeData: [], originTreeData: [], @@ -42,7 +43,10 @@ export default class NsTree extends Component { return (
- +
@@ -77,3 +81,5 @@ export default class NsTree extends Component { ); } } + +export default injectIntl(NsTree); diff --git a/web/src/components/Layout/index.tsx b/web/src/components/Layout/index.tsx index dc997a744086b86ffbea4019014e58643edc7325..cedb15dbcbd366c7a3e8ecc9cc1bc0f26650a973 100644 --- a/web/src/components/Layout/index.tsx +++ b/web/src/components/Layout/index.tsx @@ -317,11 +317,13 @@ class NILayout extends Component - 个人设置 + {language === 'zh' ? '个人设置' : 'setting'} - 退出登录 + + {language === 'zh' ? '退出登录' : 'logout'} + }> diff --git a/web/src/pages/Monitor/History/List.tsx b/web/src/pages/Monitor/History/List.tsx index 9dfc409d903aaee35621efb2768ad6e576c4eb63..8178f71c7c483e4b12c30ee552ddab1d1d5f363a 100644 --- a/web/src/pages/Monitor/History/List.tsx +++ b/web/src/pages/Monitor/History/List.tsx @@ -358,7 +358,7 @@ class index extends Component { } { this.setState({ searchValue: value });