fix: 修正 generate API 的 JSON 字段名(base/head 而非 base_ref/head_ref)
This commit is contained in:
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user