增加一键重启所有网关按钮
Build / build (push) Canceled after 0s
Playwright / e2e (push) Canceled after 0s

This commit is contained in:
2026-10-21 17:21:11 +08:00
parent 8fdec02a1c
commit 421ffa0714
12 changed files with 553 additions and 1 deletions
@@ -111,6 +111,20 @@ export async function restartProfileRuntime(name: string): Promise<ProfileRuntim
return res.status
}
export interface BatchRestartResult {
success: boolean
restarted: string[]
failed: Array<{ profile: string; error?: string }>
}
export async function restartAllProfileGateways(): Promise<BatchRestartResult> {
return request<BatchRestartResult>('/api/hermes/profiles/gateways/restart-all', { method: 'POST' })
}
export async function restartAllProfileRuntimes(): Promise<BatchRestartResult> {
return request<BatchRestartResult>('/api/hermes/profiles/restart-all', { method: 'POST' })
}
export interface CreateProfileResult {
success: boolean
/** clone=true 时被清理的独占平台凭据 KEY 名 */