From 62780777b7aa4a9736107bc51a4e4f46c25359f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 14 Jul 2025 21:25:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=98=B2=E7=81=AB=E5=A2=99=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=A7=84=E5=88=99=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9C=B0=E5=9D=80=E6=97=A0=E6=B3=95=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/firewall/CreateIpModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/views/firewall/CreateIpModal.vue b/web/src/views/firewall/CreateIpModal.vue index 3a7a15ed..d35a3786 100644 --- a/web/src/views/firewall/CreateIpModal.vue +++ b/web/src/views/firewall/CreateIpModal.vue @@ -62,12 +62,15 @@ const directions = [ const createModel = ref({ family: 'ipv4', protocol: 'tcp', - address: [], + address: [] as string[], strategy: 'accept', direction: 'in' }) const handleCreate = async () => { + if (!createModel.value.address.length) { + createModel.value.address.push('') + } for (const address of createModel.value.address) { useRequest( firewall.createIpRule({