2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 02:07:18 +08:00

fix: lint

This commit is contained in:
2026-01-09 01:04:38 +08:00
parent 874561a9d1
commit 585cc5604a
9 changed files with 58 additions and 131 deletions

View File

@@ -3,7 +3,7 @@ import { http } from '@/utils'
export interface ProcessListParams {
page: number
limit: number
sort?: string // pid, name, cpu, rss, start_time
sort?: string // pid, name, cpu, rss, start_time, ppid, num_threads
order?: string // asc, desc
status?: string // R, S, T, I, Z, W, L
keyword?: string
@@ -11,8 +11,7 @@ export interface ProcessListParams {
export default {
// 获取进程列表
list: (params: ProcessListParams) =>
http.Get(`/process`, { params }),
list: (params: ProcessListParams) => http.Get(`/process`, { params }),
// 获取进程详情
detail: (pid: number) => http.Get(`/process/detail`, { params: { pid } }),
// 杀死进程 (SIGKILL)