fix: Increase the timeout period of the swap setting (#9162)

Refs #9142
This commit is contained in:
ssongliu 2025-06-18 11:50:56 +08:00 committed by GitHub
parent 3b37d5ae72
commit 754ac64bf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ export const updateDevicePasswd = (user: string, passwd: string) => {
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_60S);
return http.post(`/toolbox/device/update/swap`, params, TimeoutEnum.T_10M);
};
export const updateDeviceByConf = (name: string, file: string) => {
return http.post(`/toolbox/device/update/byconf`, { name: name, file: file }, TimeoutEnum.T_5M);