From 44fa8b4f4b4c4ae93570b14b9835b2d61552cb95 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 14 十月 2021 15:09:48 +0800
Subject: [PATCH] 2021-10-14

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

diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx
index ac930a4..fc866fa 100644
--- a/src/components/header/index.jsx
+++ b/src/components/header/index.jsx
@@ -38,6 +38,7 @@
     confirmLoading: false,
     userName: sessionStorage.getItem('User_Name'),
     logourl: window.GLOB.mainlogo,
+    appVersion: window.GLOB.appVersion,
     loginVisible: false,
     loginLoading: false,
     avatar: Utils.getrealurl(sessionStorage.getItem('avatar')),
@@ -621,7 +622,7 @@
 
   verup = () => {
     confirm({
-      title: '鐗堟湰鍗囩骇',
+      title: '椤甸潰鏇存柊',
       content: '閲嶆柊鍔犺浇搴旂敤淇℃伅',
       onOk() {
         return new Promise(resolve => {
@@ -649,10 +650,15 @@
     })
   }
 
+  about = () => {
+    Modal.success({
+      title: '绯荤粺鐗堟湰v' + this.state.appVersion
+    })
+  }
 
   render () {
     const { mainMenu, collapse } = this.props
-    const { thdMenuList, searchkey, debug, menulist, navBar, menuType } = this.state
+    const { thdMenuList, searchkey, debug, menulist, navBar, menuType, appVersion } = this.state
 
     const menu = (
       <Menu className="header-dropdown">
@@ -668,8 +674,11 @@
         </Menu.SubMenu> : null}
         <Menu.Item key="doc" onClick={this.gotoDoc}>{this.state.dict['main.doc']}</Menu.Item>
         <Menu.Item key="verup" onClick={this.verup}>
-          鐗堟湰鍗囩骇
+          椤甸潰鏇存柊
         </Menu.Item>
+        {appVersion ? <Menu.Item key="version" onClick={this.about}>
+          鍏充簬
+        </Menu.Item> : null}
         <Menu.Item key="logout" onClick={this.logout}>{this.state.dict['main.logout']}</Menu.Item>
       </Menu>
     )

--
Gitblit v1.8.0