fix: Fix SSH log export exception when logs are empty (#10114)

This commit is contained in:
ssongliu
2025-08-22 14:37:52 +00:00
committed by GitHub
parent 2e06b78409
commit 99b04e3635
14 changed files with 103 additions and 34 deletions
+1 -4
View File
@@ -99,8 +99,5 @@ export const loadSSHLogs = (params: Host.searchSSHLog) => {
return http.post<ResPage<Host.sshHistory>>(`/hosts/ssh/log`, params);
};
export const exportSSHLogs = (params: Host.searchSSHLog) => {
return http.download<BlobPart>('/hosts/ssh/log/export', params, {
responseType: 'blob',
timeout: TimeoutEnum.T_40S,
});
return http.post<string>('/hosts/ssh/log/export', params, TimeoutEnum.T_40S);
};