From 4cbc0b98e72dcb579389237f91b03f641bb746a7 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:35:40 +0800 Subject: [PATCH] fix: 'refreshInterval' may not read the correct value --- frontend/src/components/content_value/ContentServerStatus.vue | 2 +- frontend/src/stores/connections.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/content_value/ContentServerStatus.vue b/frontend/src/components/content_value/ContentServerStatus.vue index 0a66573..1f6ccb9 100644 --- a/frontend/src/components/content_value/ContentServerStatus.vue +++ b/frontend/src/components/content_value/ContentServerStatus.vue @@ -237,7 +237,7 @@ onMounted(() => { pageState.refreshInterval = interval === 0 ? 5 : interval onToggleRefresh(true) } else { - setTimeout(refreshInfo, 5000) + setTimeout(refreshInfo, 3000) // setTimeout(_mockChart, 1000) } refreshInfo() diff --git a/frontend/src/stores/connections.js b/frontend/src/stores/connections.js index 0e36bb2..64b8916 100644 --- a/frontend/src/stores/connections.js +++ b/frontend/src/stores/connections.js @@ -105,7 +105,7 @@ const useConnectionStore = defineStore('connections', { defaultFilter: item.defaultFilter, keySeparator: item.keySeparator, markColor: item.markColor, - refreshInterval: conn.refreshInterval, + refreshInterval: item.refreshInterval, } } conns.push({