diff --git a/site/theme/template/Layout/Header.jsx b/site/theme/template/Layout/Header.jsx index 080a51980c..982380b2d8 100644 --- a/site/theme/template/Layout/Header.jsx +++ b/site/theme/template/Layout/Header.jsx @@ -152,13 +152,9 @@ export default class Header extends React.Component { {options} - { - window.location.port ? ( - - ) : null - } + diff --git a/site/theme/template/Layout/index.jsx b/site/theme/template/Layout/index.jsx index e0884360b9..ca0f650c73 100644 --- a/site/theme/template/Layout/index.jsx +++ b/site/theme/template/Layout/index.jsx @@ -12,9 +12,8 @@ window.react = React; window['react-dom'] = ReactDOM; window.antd = require('antd'); -const isZhCN = (typeof localStorage !== 'undefined' && localStorage.getItem('locale') !== 'en-US'); - // (typeof localStorage !== 'undefined' && localStorage.getItem('locale') === 'zh-CN') || - // (navigator.language === 'zh-CN'); +const isZhCN = (typeof localStorage !== 'undefined' && localStorage.getItem('locale') === 'zh-CN') || + (navigator.language === 'zh-CN'); const appLocale = isZhCN ? cnLocale : enLocale; addLocaleData(appLocale.data);