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