From 58a28e1faa15f638a136fefdcfcd0b3106c1fa16 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 24 六月 2020 10:18:54 +0800
Subject: [PATCH] 2020-06-24

---
 src/components/header/index.jsx |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx
index 84d11fe..119447f 100644
--- a/src/components/header/index.jsx
+++ b/src/components/header/index.jsx
@@ -23,8 +23,8 @@
 } from '@/store/action'
 import Api from '@/api'
 import options from '@/store/options.js'
-import zhCN from '@/locales/zh-CN/header.js'
-import enUS from '@/locales/en-US/header.js'
+import zhCN from '@/locales/zh-CN/main.js'
+import enUS from '@/locales/en-US/main.js'
 import Utils from '@/utils/utils.js'
 import avatar from '@/assets/img/avatar.jpg'
 import Resetpwd from './resetpwd'
@@ -101,7 +101,7 @@
       })
       notification.success({
         top: 92,
-        message: this.state.dict['header.password.resetsuccess'],
+        message: this.state.dict['main.password.resetsuccess'],
         duration: 2
       })
     } else {
@@ -127,10 +127,10 @@
     // 閫�鍑虹櫥褰�
     let _this = this
     confirm({
-      title: this.state.dict['header.logout.hint'],
+      title: this.state.dict['main.logout.hint'],
       content: '',
-      okText: this.state.dict['header.confirm'],
-      cancelText: this.state.dict['header.cancel'],
+      okText: this.state.dict['main.confirm'],
+      cancelText: this.state.dict['main.cancel'],
       onOk() {
         sessionStorage.clear()
         _this.props.logout()
@@ -639,16 +639,16 @@
     const menu = (
       <Menu overlayclassname="header-dropdown">
         {this.props.debug && <Menu.Item key="0">
-          {this.state.dict['header.edit']}
+          {this.state.dict['main.edit']}
           <Switch size="small" className="edit-switch" disabled={!!this.props.editLevel} checked={this.props.editState} onChange={this.changeEditState} />
         </Menu.Item>}
-        {!this.props.editState ? <Menu.Item key="1" onClick={this.changePassword}>{this.state.dict['header.password']}</Menu.Item> : null}
+        {!this.props.editState ? <Menu.Item key="1" onClick={this.changePassword}>{this.state.dict['main.password']}</Menu.Item> : null}
         {/* {this.state.systems.length > 0 ? <Menu.SubMenu title="鍒囨崲绯荤粺">
           {this.state.systems.map((system, index) => (
             <Menu.Item className="header-subSystem" key={'sub' + index} onClick={() => {this.changeSystem(system)}}> {system.AppName} </Menu.Item>
           ))}
         </Menu.SubMenu> : null} */}
-        <Menu.Item key="2" onClick={this.logout}>{this.state.dict['header.logout']}</Menu.Item>
+        <Menu.Item key="2" onClick={this.logout}>{this.state.dict['main.logout']}</Menu.Item>
       </Menu>
     )
 
@@ -730,9 +730,9 @@
         }
         {/* 淇敼瀵嗙爜 */}
         <Modal
-          title={this.state.dict['header.password']}
-          okText={this.state.dict['header.confirm']}
-          cancelText={this.state.dict['header.cancel']}
+          title={this.state.dict['main.password']}
+          okText={this.state.dict['main.confirm']}
+          cancelText={this.state.dict['main.cancel']}
           visible={this.state.visible}
           onOk={this.resetPwdSubmit}
           confirmLoading={this.state.confirmLoading}
@@ -743,9 +743,9 @@
         </Modal>
         {/* 缂栬緫鐘舵�佺櫥褰� */}
         <Modal
-          title={this.state.dict['header.login.develop']}
-          okText={this.state.dict['header.confirm']}
-          cancelText={this.state.dict['header.cancel']}
+          title={this.state.dict['main.login.develop']}
+          okText={this.state.dict['main.confirm']}
+          cancelText={this.state.dict['main.cancel']}
           visible={this.state.loginVisible}
           onOk={this.loginSubmit}
           width={'430px'}

--
Gitblit v1.8.0