feat: Multi-machine management supports viewing node logs (#11510)

This commit is contained in:
ssongliu 2025-12-29 15:11:34 +08:00 committed by GitHub
parent f8f5fcfca2
commit eb4eb31578
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,8 +10,9 @@ export const getLoginLogs = (info: Log.SearchLgLog) => {
return http.post<ResPage<Log.OperationLog>>(`/core/logs/login`, info);
};
export const getSystemFiles = () => {
return http.get<Array<string>>(`/logs/system/files`);
export const getSystemFiles = (node?: string) => {
const params = node ? `?operateNode=${node}` : '';
return http.get<Array<string>>(`/logs/system/files${params}`);
};
export const cleanLogs = (param: Log.CleanLog) => {