fix: 修正 generate API 的 JSON 字段名(base/head 而非 base_ref/head_ref)

This commit is contained in:
2026-06-19 22:19:38 +08:00
parent b35d6f874b
commit e9f1a66aeb
+2 -2
View File
@@ -156,8 +156,8 @@
const fields = { title: '', type: '', summary: '', details: '', impact: '' };
SSE.post(`/api/repos/${repoId}/generate`, {
base_ref: baseRef,
head_ref: headRef,
base: baseRef,
head: headRef,
}, {
title(data) {
fields.title += data.content || '';