mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 04:37:17 +08:00
feat: 进程管理
This commit is contained in:
8
web/src/api/panel/process/index.ts
Normal file
8
web/src/api/panel/process/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { http } from '@/utils'
|
||||
|
||||
export default {
|
||||
// 获取进程列表
|
||||
list: (page: number, limit: number) => http.Get(`/process`, { params: { page, limit } }),
|
||||
// 杀死进程
|
||||
kill: (pid: number) => http.Post(`/process/kill`, { pid })
|
||||
}
|
||||
Reference in New Issue
Block a user