Kaynağa Gözat

Changed on Login Stuff and visibility control.

jason.lu 6 yıl önce
ebeveyn
işleme
e740b1dabf
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      js/entrance.js

+ 2 - 1
js/entrance.js

@@ -147,6 +147,7 @@ function send_remain(a, b) {
 function on_receive_exist(objs, sta){
     let obj = first_parse(this, objs);
     console.log(obj);
+    let wholehtml = "";
     if(obj != null && obj != undefined && obj.list != null){
         if(obj.list.length === 0){
             wholehtml = "当前没有正在进行的班次!";
@@ -154,7 +155,7 @@ function on_receive_exist(objs, sta){
             return;
         }
         let i = 0;
-        let wholehtml = "正在进行的班次: <br>";
+        wholehtml = "正在进行的班次: <br>";
         for(i=0;i<obj.list.length;i++){
             wholehtml += getRemainHTML(obj.list[i]);
         }