From a6fb0f1e89a41ee1345ea005f63b09e645426c3a Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:54:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A5=E5=85=B7=E7=AE=B1=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=A2=9E=E5=8A=A0=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= =?UTF-8?q?=20(#3365)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #3358 --- frontend/src/api/modules/toolbox.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/api/modules/toolbox.ts b/frontend/src/api/modules/toolbox.ts index 61a296a96..80cb1c556 100644 --- a/frontend/src/api/modules/toolbox.ts +++ b/frontend/src/api/modules/toolbox.ts @@ -18,13 +18,13 @@ export const updateDeviceHost = (param: Array) => { return http.post(`/toolbox/device/update/host`, param, TimeoutEnum.T_60S); }; export const updateDevicePasswd = (user: string, passwd: string) => { - return http.post(`/toolbox/device/update/passwd`, { user: user, passwd: Base64.encode(passwd) }); + return http.post(`/toolbox/device/update/passwd`, { user: user, passwd: Base64.encode(passwd) }, TimeoutEnum.T_60S); }; export const updateDeviceSwap = (params: Toolbox.SwapHelper) => { - return http.post(`/toolbox/device/update/swap`, params, TimeoutEnum.T_5M); + return http.post(`/toolbox/device/update/swap`, params, TimeoutEnum.T_60S); }; export const updateDeviceByConf = (name: string, file: string) => { - return http.post(`/toolbox/device/update/byconf`, { name: name, file: file }); + return http.post(`/toolbox/device/update/byconf`, { name: name, file: file }, TimeoutEnum.T_5M); }; export const checkDNS = (key: string, value: string) => { return http.post(`/toolbox/device/check/dns`, { key: key, value: value }); @@ -54,17 +54,17 @@ export const searchFail2ban = (param: Toolbox.Fail2banSearch) => { }; export const operateFail2ban = (operate: string) => { - return http.post(`/toolbox/fail2ban/operate`, { operation: operate }); + return http.post(`/toolbox/fail2ban/operate`, { operation: operate }, TimeoutEnum.T_5M); }; export const operatorFail2banSSHD = (param: Toolbox.Fail2banSet) => { - return http.post(`/toolbox/fail2ban/operate/sshd`, param); + return http.post(`/toolbox/fail2ban/operate/sshd`, param, TimeoutEnum.T_5M); }; export const updateFail2ban = (param: Toolbox.Fail2banUpdate) => { - return http.post(`/toolbox/fail2ban/update`, param); + return http.post(`/toolbox/fail2ban/update`, param, TimeoutEnum.T_5M); }; export const updateFail2banByFile = (param: UpdateByFile) => { - return http.post(`/toolbox/fail2ban/update/byconf`, param); + return http.post(`/toolbox/fail2ban/update/byconf`, param, TimeoutEnum.T_5M); };