diff --git a/web/src/api/index.ts b/web/src/api/index.ts index b1bdf0a..989c7df 100644 --- a/web/src/api/index.ts +++ b/web/src/api/index.ts @@ -25,19 +25,6 @@ export const pushConfigToClient = (id: string) => post(`/client/${id}/push`) export const disconnectClient = (id: string) => post(`/client/${id}/disconnect`) export const restartClient = (id: string) => post(`/client/${id}/restart`) -// 更新管理 - return get(path) - case 'POST': - return post(path, body) - case 'PUT': - return put(path, body) - case 'DELETE': - return del(path) - default: - return get(path) - } -} - // 更新管理 export interface UpdateInfo { available: boolean