dev #1

Merged
sky merged 16 commits from dev into beta 2024-12-12 18:27:29 +08:00
Showing only changes of commit e18e39db35 - Show all commits

View File

@ -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);