From cf43493d7aa9c1a83cb1551c102f501f1dfde9b0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 06 六月 2020 13:23:39 +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