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

feat: 进程管理

This commit is contained in:
耗子
2024-12-03 21:14:27 +08:00
parent 8c7a65a8b6
commit a3bbbfa87c
8 changed files with 336 additions and 10 deletions

View 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 })
}