feat: Multi-machine management supports viewing node logs

This commit is contained in:
ssongliu 2025-12-29 13:48:08 +08:00
parent 4e7b654090
commit 715a02ccfd

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) => {