fix: 'refreshInterval' may not read the correct value
This commit is contained in:
parent
a679858478
commit
4cbc0b98e7
|
@ -237,7 +237,7 @@ onMounted(() => {
|
||||||
pageState.refreshInterval = interval === 0 ? 5 : interval
|
pageState.refreshInterval = interval === 0 ? 5 : interval
|
||||||
onToggleRefresh(true)
|
onToggleRefresh(true)
|
||||||
} else {
|
} else {
|
||||||
setTimeout(refreshInfo, 5000)
|
setTimeout(refreshInfo, 3000)
|
||||||
// setTimeout(_mockChart, 1000)
|
// setTimeout(_mockChart, 1000)
|
||||||
}
|
}
|
||||||
refreshInfo()
|
refreshInfo()
|
||||||
|
|
|
@ -105,7 +105,7 @@ const useConnectionStore = defineStore('connections', {
|
||||||
defaultFilter: item.defaultFilter,
|
defaultFilter: item.defaultFilter,
|
||||||
keySeparator: item.keySeparator,
|
keySeparator: item.keySeparator,
|
||||||
markColor: item.markColor,
|
markColor: item.markColor,
|
||||||
refreshInterval: conn.refreshInterval,
|
refreshInterval: item.refreshInterval,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
conns.push({
|
conns.push({
|
||||||
|
|
Loading…
Reference in New Issue