From ce13e25ed685ba5c961832d023ceafecf4f30d47 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期六, 10 一月 2026 15:27:33 +0800
Subject: [PATCH] #
---
src/main/webapp/views/index.html | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 90597c8..6c52b6f 100644
--- a/src/main/webapp/views/index.html
+++ b/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) {
--
Gitblit v1.9.1