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