fix(admin-web): 修复切换维护状态HTTP方法不匹配问题 (PATCH→PUT)
This commit is contained in:
parent
ba3a21d049
commit
912cc1eb8f
|
|
@ -90,7 +90,7 @@ export const maintenanceService = {
|
|||
* 切换维护配置激活状态
|
||||
*/
|
||||
async toggleMaintenance(id: string, isActive: boolean): Promise<MaintenanceItem> {
|
||||
return apiClient.patch(API_ENDPOINTS.MAINTENANCE.TOGGLE(id), { isActive });
|
||||
return apiClient.put(API_ENDPOINTS.MAINTENANCE.TOGGLE(id), { isActive });
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue