#
Junjie
8 天以前 ce13e25ed685ba5c961832d023ceafecf4f30d47
src/main/webapp/views/index.html
@@ -208,7 +208,8 @@
    }
    let fakeRunning = false
    setInterval(function () {
    let fakeStatusInterval = null
    function checkFakeStatus() {
      $.ajax({
        url: baseUrl + "/openapi/getFakeSystemRunStatus",
        headers: {'token': localStorage.getItem('token')},
@@ -224,15 +225,23 @@
                $("#fakeShowText").text("仿真模拟未运行")
              }
              fakeRunning = running
              if (!fakeStatusInterval) {
                fakeStatusInterval = setInterval(checkFakeStatus, 1000);
              }
            }else {
              $("#fakeShow").hide()
              if (fakeStatusInterval) {
                clearInterval(fakeStatusInterval);
                fakeStatusInterval = null;
              }
            }
          }else {
            top.location.href = baseUrl + "/login";
          }
        }
      });
    }, 1000);
    }
    checkFakeStatus();
    $("#fakeShow").on("click", function () {
      if (fakeRunning) {