fix: bug#12492

This commit is contained in:
xieyonghong 2023-04-25 15:36:35 +08:00
parent 229bec30ed
commit f83287ce12
2 changed files with 1 additions and 1 deletions

View File

@ -201,6 +201,7 @@ onUnmounted(() => {
if (ws.value) { if (ws.value) {
ws.value.unsubscribe?.(); ws.value.unsubscribe?.();
} }
clearAction()
}) })
const options = ref<{ label: string, value: string }[]>() const options = ref<{ label: string, value: string }[]>()

View File

@ -52,7 +52,6 @@ const cpuSocket = getWebSocket(
) )
?.pipe(map((res: any) => res.payload)) ?.pipe(map((res: any) => res.payload))
.subscribe((resp: any) => { .subscribe((resp: any) => {
console.log(resp)
cpu.value = resp.value?.systemUsage || 0; cpu.value = resp.value?.systemUsage || 0;
}); });
const jvmSocket = getWebSocket( const jvmSocket = getWebSocket(