mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
fix: 防火墙添加规则时,不添加地址无法添加
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user