huai-sian há 3 anos atrás
pai
commit
c0016560af
3 ficheiros alterados com 9 adições e 9 exclusões
  1. 3 3
      html/script_eng.js
  2. 3 3
      html/static/script_slides.js
  3. 3 3
      html/static/script_slides_eng.js

+ 3 - 3
html/script_eng.js

@@ -22,9 +22,9 @@ function checkRoute() {
      }
   }).then(res => {
     console.log(res.data);
-    if(res.status !== 200) {
-      window.location.replace("login.html");
-    }
+    // if(res.status !== 200) {
+    //   window.location.replace("login.html");
+    // }
     var userName='';
     userName+=' <h2 class="user-name text-white mt-4 fw-bold">Hi '+res.data.user_info.userName+'</h2>';
     $('.userName').html(userName);

+ 3 - 3
html/static/script_slides.js

@@ -20,9 +20,9 @@ function checkRoute() {
      }
   }).then(res => {
     console.log(res.data);
-    if(res.status !== 200) {
-      window.location.replace("login.html");
-    }
+    // if(res.status !== 200) {
+    //   window.location.replace("login.html");
+    // }
     var userName='';
     userName+=' <h2 class="user-name text-white mt-lg-3 mt-xl-1 fw-bold">Hi '+res.data.user_info.userName+'</h2>';
     $('.userName').html(userName);

+ 3 - 3
html/static/script_slides_eng.js

@@ -22,9 +22,9 @@ function checkRoute() {
      }
   }).then(res => {
     console.log(res.data);
-    if(res.status !== 200) {
-      window.location.replace("login.html");
-    }
+    // if(res.status !== 200) {
+    //   window.location.replace("login.html");
+    // }
     var userName='';
     userName+=' <h2 class="user-name text-white mt-lg-3 mt-xl-1 fw-bold">Hi '+res.data.user_info.userName+'</h2>';
     $('.userName').html(userName);