修复https无法加载http的api服务问题
This commit is contained in:
parent
1384945a24
commit
c41268f8e3
@ -10,8 +10,8 @@ class SystemMonitor {
|
|||||||
this.updateInterval = 1000;
|
this.updateInterval = 1000;
|
||||||
this.isOnline = false;
|
this.isOnline = false;
|
||||||
|
|
||||||
this.cpuApiUrl = 'https://dreamlife.indevs.in:61207/api/4/cpu';
|
this.cpuApiUrl = 'https://150.158.142.253/api/4/cpu';
|
||||||
this.memoryApiUrl = 'https://dreamlife.indevs.in:61207/api/4/mem';
|
this.memoryApiUrl = 'https://150.158.142.253/api/4/mem';
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
@ -227,7 +227,7 @@ async function testLatency() {
|
|||||||
try {
|
try {
|
||||||
const startTime = performance.now();
|
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',
|
method: 'GET',
|
||||||
signal: AbortSignal.timeout(5000)
|
signal: AbortSignal.timeout(5000)
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user