fix: improve host system log filtering compatibility (#13373)

This commit is contained in:
ssongliu
2026-07-27 11:25:26 +08:00
committed by GitHub
parent 739686ff89
commit 26bd2d08be
21 changed files with 242 additions and 4 deletions
+5
View File
@@ -21,6 +21,11 @@ export const getSystemFiles = (node?: string) => {
return http.get<Array<string>>(`/logs/system/files${params}`);
};
export const getSystemLogStatus = (node?: string) => {
const query = node ? `?operateNode=${node}` : '';
return http.get<Log.SystemLogStatus>(`/logs/system/status${query}`);
};
export const readSystemLogs = (params: Log.SystemLogSearch, node?: string) => {
const query = node ? `?operateNode=${node}` : '';
return http.post<Log.SystemLog>(`/logs/system/read${query}`, params);