diff --git a/frontend/src/views/host/tool/supervisor/index.vue b/frontend/src/views/host/tool/supervisor/index.vue index c285dbc77..20444d465 100644 --- a/frontend/src/views/host/tool/supervisor/index.vue +++ b/frontend/src/views/host/tool/supervisor/index.vue @@ -228,7 +228,7 @@ const search = async () => { needLoadStatus = true; } } - if (needLoadStatus) { + if (supervisorStatus.value.isRunning && needLoadStatus) { setTimeout(loadStatus, 1000); } } catch (error) {} @@ -252,7 +252,7 @@ const loadStatus = async () => { } } } - if (needLoadStatus) { + if (supervisorStatus.value.isRunning && needLoadStatus) { setTimeout(loadStatus, 2000); } } catch (error) {}