修复校验任务幂等键并更新双版本数据库回归进度

This commit is contained in:
xuans committed 2026-10-02 20:46:19 +08:00
1 parent 24a9683c43
commit 4ab3f93beb
6 files changed
+92 -11

No files matched your search

+2 -1
View File
@@ -590,7 +590,8 @@ export function useDashboard() {
const options = { method: "POST" };
if (action === "issue" || action === "deploy" || action === "certificate/validate") {
const suffix = crypto.randomUUID ? crypto.randomUUID() : createRandomSuffix();
options.headers = { "Idempotency-Key": `${action}-${item.id}-${suffix}` };
const prefix = action === "certificate/validate" ? "certificate-validate" : action;
options.headers = { "Idempotency-Key": `${prefix}-${item.id}-${suffix}` };
}
const response = await fetchAdmin(`/api/v1/domains/${item.id}/${action}`, options);
const result = await response.json().catch(() => ({}));