mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-14 02:54:09 +08:00
feat: Multi-machine management supports viewing node logs
This commit is contained in:
parent
4e7b654090
commit
715a02ccfd
1 changed files with 3 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue