diff --git a/frontend/src/api/modules/log.ts b/frontend/src/api/modules/log.ts index de01f26b0f68..311e14fed549 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) => {