fix: 'refreshInterval' may not read the correct value

This commit is contained in:
Lykin 2024-01-23 11:35:40 +08:00
parent a679858478
commit 4cbc0b98e7
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ onMounted(() => {
pageState.refreshInterval = interval === 0 ? 5 : interval
onToggleRefresh(true)
} else {
setTimeout(refreshInfo, 5000)
setTimeout(refreshInfo, 3000)
// setTimeout(_mockChart, 1000)
}
refreshInfo()

View File

@ -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({