2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

fix: 防火墙添加规则点不动

This commit is contained in:
2025-08-24 00:11:38 +08:00
parent 027ffe3e70
commit 0b2b4c643c

View File

@@ -64,12 +64,15 @@ const createModel = ref({
protocol: 'tcp',
port_start: 80,
port_end: 80,
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.createRule({