mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-05 22:54:26 +08:00
fix: Fix overview page data loading/closing exception (#9373)
This commit is contained in:
parent
e855e7692e
commit
1767b84026
1 changed files with 10 additions and 5 deletions
|
|
@ -406,11 +406,16 @@ const onLoadBaseInfo = async (isInit: boolean, range: string) => {
|
|||
statusRef.value?.acceptParams(currentInfo.value, baseInfo.value);
|
||||
appRef.value?.acceptParams();
|
||||
if (isInit) {
|
||||
timer = setInterval(async () => {
|
||||
if (isActive.value && !globalStore.isOnRestart) {
|
||||
await onLoadCurrentInfo();
|
||||
}
|
||||
}, 3000);
|
||||
try {
|
||||
timer = setInterval(async () => {
|
||||
if (isActive.value && !globalStore.isOnRestart) {
|
||||
await onLoadCurrentInfo();
|
||||
}
|
||||
}, 3000);
|
||||
} finally {
|
||||
clearInterval(Number(timer));
|
||||
timer = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue