From 7c479b172073b0182c5f6c4fc972495ab9ac3687 Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Sun, 7 Dec 2025 22:10:55 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E4=BC=98=E5=8C=96=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-visor-ui/src/views/asset/host-group/drawer/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orion-visor-ui/src/views/asset/host-group/drawer/index.vue b/orion-visor-ui/src/views/asset/host-group/drawer/index.vue index 6bbcd062..57c48e15 100644 --- a/orion-visor-ui/src/views/asset/host-group/drawer/index.vue +++ b/orion-visor-ui/src/views/asset/host-group/drawer/index.vue @@ -109,10 +109,13 @@ // 保存主机 const saveHost = async () => { + if (!currentGroup.value?.key) { + return false; + } setLoading(true); try { await updateHostGroupRel({ - groupId: currentGroup.value?.key as number, + groupId: currentGroup.value?.key, hostIdList: currentGroupHost.value }); Message.success('保存成功');