From eb4eb315788a1d4ba706e961037c72899e36f273 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 29 Dec 2025 15:11:34 +0800 Subject: [PATCH] feat: Multi-machine management supports viewing node logs (#11510) --- frontend/src/api/modules/log.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/modules/log.ts b/frontend/src/api/modules/log.ts index de01f26b0..311e14fed 100644 --- a/frontend/src/api/modules/log.ts +++ b/frontend/src/api/modules/log.ts @@ -10,8 +10,9 @@ export const getLoginLogs = (info: Log.SearchLgLog) => { return http.post>(`/core/logs/login`, info); }; -export const getSystemFiles = () => { - return http.get>(`/logs/system/files`); +export const getSystemFiles = (node?: string) => { + const params = node ? `?operateNode=${node}` : ''; + return http.get>(`/logs/system/files${params}`); }; export const cleanLogs = (param: Log.CleanLog) => {