mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-24 09:48:33 +08:00
fix: 解决 SSH 日志批量操作失败的问题 (#2515)
This commit is contained in:
parent
7f53c9bc57
commit
9f35e26e22
1 changed files with 6 additions and 12 deletions
|
|
@ -225,19 +225,13 @@ const onChangeStatus = async (status: string, row: Host.logAnalysis | null) => {
|
|||
};
|
||||
|
||||
const submitOperation = async () => {
|
||||
const pros = [];
|
||||
for (const item of operationList.value) {
|
||||
pros.push(
|
||||
operateIPRule({
|
||||
operation: operation.value === 'drop' ? 'add' : 'remove',
|
||||
address: item,
|
||||
strategy: 'drop',
|
||||
description: '',
|
||||
}),
|
||||
);
|
||||
}
|
||||
loading.value = true;
|
||||
Promise.all(pros)
|
||||
operateIPRule({
|
||||
operation: operation.value === 'drop' ? 'add' : 'remove',
|
||||
address: operationList.value.join(','),
|
||||
strategy: 'drop',
|
||||
description: '',
|
||||
})
|
||||
.then(() => {
|
||||
loading.value = false;
|
||||
dialogVisible.value = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue