fix: 解决防火墙搜索报错的问题 (#2256)

This commit is contained in:
ssongliu 2023-09-11 18:30:14 +08:00 committed by GitHub
parent a364dbffbf
commit ac91480987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 5 deletions

View File

@ -76,7 +76,7 @@ export const searchFireRule = (params: Host.RuleSearch) => {
return http.post<ResPage<Host.RuleInfo>>(`/hosts/firewall/search`, params);
};
export const operateFire = (operation: string) => {
return http.post(`/hosts/firewall/operate`, { operation: operation });
return http.post(`/hosts/firewall/operate`, { operation: operation }, 40000);
};
export const operatePortRule = (params: Host.RulePort) => {
return http.post<Host.RulePort>(`/hosts/firewall/port`, params);

View File

@ -35,9 +35,7 @@
<el-input
v-model="searchName"
clearable
@clear="search()"
suffix-icon="Search"
@keyup.enter="search()"
@change="search()"
:placeholder="$t('commons.button.search')"
></el-input>

View File

@ -67,9 +67,7 @@
<el-input
v-model="searchName"
clearable
@clear="search()"
suffix-icon="Search"
@keyup.enter="search()"
@change="search()"
:placeholder="$t('commons.button.search')"
></el-input>