From 62eaf7c18f87ef395c2f45194f0eac4cb43c3dc5 Mon Sep 17 00:00:00 2001 From: l3008kkk Date: Mon, 10 Mar 2025 11:37:16 +0800 Subject: [PATCH] =?UTF-8?q?Datakit=E5=B9=B6=E8=A1=8C=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E7=94=A8=E6=88=B7=E5=8F=AF=E9=80=89=E9=99=A4?= =?UTF-8?q?root=E5=A4=96sudo=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-ui/src/views/monitor/operation/task/step1/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/base-ops/web-ui/src/views/monitor/operation/task/step1/index.vue b/plugins/base-ops/web-ui/src/views/monitor/operation/task/step1/index.vue index 78e2685c5..f902d5b26 100644 --- a/plugins/base-ops/web-ui/src/views/monitor/operation/task/step1/index.vue +++ b/plugins/base-ops/web-ui/src/views/monitor/operation/task/step1/index.vue @@ -440,7 +440,7 @@ const fetchUserList = (value: any) => { getHostUser(data.hostId).then((res) => { hostUserList.value = [] res.data.forEach(item => { - if (item.sudo === false) { + if (item.username !== 'root') { hostUserList.value.push(item.username) hostUserId.set(item.username, item.hostUserId) } -- Gitee