feat: add deps page

This commit is contained in:
engigu
2025-12-23 23:14:51 +08:00
parent 4de4073ae2
commit 95242410d5
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ export const api = {
create: (data: { name: string; version?: string; type: string; remark?: string }) =>
request<Dependency>('/deps', { method: 'POST', body: JSON.stringify(data) }),
delete: (id: number) => request(`/deps/${id}`, { method: 'DELETE' }),
install: (data: { name: string; version?: string; type: string }) =>
install: (data: { name: string; version?: string; type: string; remark?: string }) =>
request('/deps/install', { method: 'POST', body: JSON.stringify(data) }),
uninstall: (id: number) => request(`/deps/uninstall/${id}`, { method: 'POST' }),
getInstalled: (type: string) => request<Dependency[]>(`/deps/installed?type=${type}`)