From 5f03bbd2eafb64018aa0baaf03bfe5e6bcec0b0c Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期一, 25 五月 2020 15:58:06 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/login.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html
index ddcefa8..d8442c9 100644
--- a/src/main/webapp/views/login.html
+++ b/src/main/webapp/views/login.html
@@ -141,8 +141,8 @@
         url: baseUrl+"/code/switch.action",
         async: false,
         success: function (res) {
-            codeSwitch = res.data;
-            if (codeSwitch === 'N'){
+            if (res.data === 'N'){
+                codeSwitch = res.data;
                 $('#code-box').css("display", "none");
             }
         }

--
Gitblit v1.9.1