From 65a39b1a125637d31643c75bb25c201dcc7e11ba Mon Sep 17 00:00:00 2001 From: royalpioneer Date: Thu, 12 Dec 2024 11:46:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E6=94=AF=E6=8C=81=E6=95=85?= =?UTF-8?q?=E9=9A=9C=E6=B1=A0=E3=80=81=E5=BE=85=E5=9B=9E=E6=94=B6=E6=B1=A0?= =?UTF-8?q?=20#7881=20#=20Reviewed,=20transaction=20id:=2026624?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/host-list/components/batch-setting/Index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dbm-ui/frontend/src/views/resource-manage/pool/components/host-list/components/batch-setting/Index.vue b/dbm-ui/frontend/src/views/resource-manage/pool/components/host-list/components/batch-setting/Index.vue index f44d483c74..dfc570445e 100644 --- a/dbm-ui/frontend/src/views/resource-manage/pool/components/host-list/components/batch-setting/Index.vue +++ b/dbm-ui/frontend/src/views/resource-manage/pool/components/host-list/components/batch-setting/Index.vue @@ -199,7 +199,11 @@ const handleDelete = (value: 'storage_spec' | 'rack_id') => { selectedOptions.value = selectedOptions.value.filter((item) => item !== value); - formData[value] = undefined; + if (value === 'storage_spec') { + formData[value] = []; + } else { + formData[value] = ''; + } }; const handleCancel = () => {