修复https无法加载http的api服务问题

This commit is contained in:
张梦南 2026-07-09 19:27:49 +08:00
parent 1384945a24
commit c41268f8e3

View File

@ -10,8 +10,8 @@ class SystemMonitor {
this.updateInterval = 1000;
this.isOnline = false;
this.cpuApiUrl = 'https://dreamlife.indevs.in:61207/api/4/cpu';
this.memoryApiUrl = 'https://dreamlife.indevs.in:61207/api/4/mem';
this.cpuApiUrl = 'https://150.158.142.253/api/4/cpu';
this.memoryApiUrl = 'https://150.158.142.253/api/4/mem';
this.init();
}
@ -227,7 +227,7 @@ async function testLatency() {
try {
const startTime = performance.now();
await fetch('https://dreamlife.indevs.in:61207/api/4/cpu', {
await fetch('https://150.158.142.253/api/4/cpu', {
method: 'GET',
signal: AbortSignal.timeout(5000)
});