2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

fix: 防火墙添加规则时,不添加地址无法添加

This commit is contained in:
2025-07-14 21:25:56 +08:00
parent 796b48ca8b
commit 62780777b7

View File

@@ -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({