mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-26 08:00:12 +00:00
fix: improve host system log filtering compatibility (#13373)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user