更新 simpleadmin/www/index.html
This commit is contained in:
parent
7a6328f97f
commit
e18e39db35
@ -2006,13 +2006,11 @@
|
|||||||
// Set the refresh rate for interval
|
// Set the refresh rate for interval
|
||||||
this.intervalId = setInterval(() => {
|
this.intervalId = setInterval(() => {
|
||||||
this.fetchUpTime();
|
this.fetchUpTime();
|
||||||
|
|
||||||
this.fetchAllInfo();
|
this.fetchAllInfo();
|
||||||
|
this.fetchSystemStats();
|
||||||
this.requestPing()
|
this.requestPing()
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
const response = data.trim();
|
const response = data.trim();
|
||||||
// Trim any leading/trailing spaces
|
|
||||||
if (response === "OK") {
|
if (response === "OK") {
|
||||||
this.internetConnectionStatus = "已连接";
|
this.internetConnectionStatus = "已连接";
|
||||||
} else {
|
} else {
|
||||||
@ -2023,7 +2021,6 @@
|
|||||||
console.error("Error:", error);
|
console.error("Error:", error);
|
||||||
this.internetConnectionStatus = "已断开";
|
this.internetConnectionStatus = "已断开";
|
||||||
});
|
});
|
||||||
|
|
||||||
this.lastUpdate = new Date().toLocaleString();
|
this.lastUpdate = new Date().toLocaleString();
|
||||||
console.log("Refreshed");
|
console.log("Refreshed");
|
||||||
}, this.refreshRate * 1000);
|
}, this.refreshRate * 1000);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user