From 5425544a6b1ea9bd17c5967024892c8082f04338 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20Supervisor=20?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E4=B9=8B=E5=90=8E=E4=B8=80=E7=9B=B4=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E7=8A=B6=E6=80=81=E7=9A=84=E9=97=AE=E9=A2=98=20(#2346?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/host/tool/supervisor/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {}