From 137fb8ea6af2789b3238b22bac31d80bced41dfe Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 28 七月 2021 11:39:39 +0800
Subject: [PATCH] 2021-07-28

---
 src/views/login/index.jsx |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx
index 996d2b8..e7045ff 100644
--- a/src/views/login/index.jsx
+++ b/src/views/login/index.jsx
@@ -66,12 +66,6 @@
       dict: item === 'zh-CN' ? zhCN : enUS
     })
   }
-  
-  md5Password (pwd) {
-    // md5瀵嗙爜鍔犲瘑
-    const salt = 'minkesoft'
-    return md5(md5(pwd + salt))
-  }
 
   handleSubmit = () => {
     this.loginformRef.handleConfirm().then(res => {
@@ -375,7 +369,11 @@
               navBar: res.menu_type
             }
 
-            sessionStorage.setItem('home_background', res.index_background_color)
+            sessionStorage.setItem('home_background', res.index_background_color || '')
+            if (res.sys_datetime) {
+              sessionStorage.setItem('sys_datetime', res.sys_datetime)
+              sessionStorage.setItem('app_datetime', new Date().getTime())
+            }
 
             // url鏍囬
             document.title = systemMsg.platTitle

--
Gitblit v1.8.0