From 838bde28f04716aed00b710beb915b9cd62f64d4 Mon Sep 17 00:00:00 2001 From: Flik Date: Tue, 17 Mar 2026 23:17:57 +0800 Subject: [PATCH] refactor: remove unused code for HTTP method handling in update management --- web/src/api/index.ts | 13 ------------- 1 file changed, 13 deletions(-) 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