mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-27 16:00:59 +00:00
fix: Fix SSH log export exception when logs are empty (#10114)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user