From 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 三月 2020 18:42:20 +0800
Subject: [PATCH] 2020-03-12

---
 src/views/login/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx
index 83a2061..e226e96 100644
--- a/src/views/login/index.jsx
+++ b/src/views/login/index.jsx
@@ -118,8 +118,7 @@
         localStorage.setItem('AuthCode', box)
 
         this.setState({
-          auth: true,
-          loaded: true
+          auth: true
         })
       } else {
         localStorage.removeItem('AuthCode')
@@ -154,6 +153,7 @@
             isDisabled={this.state.isDisabled}
             changelang={(value) => this.changelang(value)}
             handleSubmit={() => this.handleSubmit()}
+            loaded={() => this.setState({ loaded: true })}
             wrappedComponentRef={(inst) => this.loginformRef = inst}
           />
         </div>

--
Gitblit v1.8.0