From 715a02ccfd5f90086cc4b215b038082bf8358502 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Mon, 29 Dec 2025 13:48:08 +0800 Subject: [PATCH] feat: Multi-machine management supports viewing node logs --- 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) => {