mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
fix: 防火墙添加规则点不动
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user