feat(cloudflare): 新增全局托管开关并发布 v1.8.0

This commit is contained in:
2026-09-30 11:56:56 +08:00
parent 1434cfd72b
commit 2d0f63517b
17 changed files with 198 additions and 27 deletions
+5
View File
@@ -517,4 +517,9 @@ export const api = {
method: 'POST',
body: JSON.stringify({ account_id: accountId, token, kind }),
}, 60_000),
setCfEnabled: (enabled: boolean) =>
request<CfAppSettings>('/api/cloudflare/enabled', {
method: 'POST',
body: JSON.stringify({ enabled }),
}),
}