diff --git a/web/src/components/Layout/NsTree.tsx b/web/src/components/Layout/NsTree.tsx index 87181a39..fe83c333 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 dc997a74..cedb15db 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 9dfc409d..8178f71c 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 });