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 78e2685c50d151985267e763de44d34b923e653c..f902d5b268ddd5dbb78a016c67a2eb32e2da7cf8 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) }