diff --git a/web/app.js b/web/app.js index 733f9d5..4b9c634 100644 --- a/web/app.js +++ b/web/app.js @@ -1216,6 +1216,8 @@ document.addEventListener('click', (ev) => { if (p) { $('#cfgConcurrency').value = p.concurrency ?? 1; $('#cfgAutonomy').value = AUTONOMY_LABEL[p.autonomy] ? p.autonomy : 'manual'; + $('#cfgVerifyCmd').value = p.verifyCmd ?? ''; + $('#cfgModel').value = p.model ?? ''; } } break; @@ -1225,9 +1227,11 @@ document.addEventListener('click', (ev) => { const cc = Number($('#cfgConcurrency').value); if (!Number.isInteger(cc) || cc < 1) { toast('最大并发必须是 ≥1 的整数'); break; } const autonomy = $('#cfgAutonomy').value; + const verifyCmd = $('#cfgVerifyCmd').value.trim() || null; + const model = $('#cfgModel').value.trim() || null; act(async () => { await api(`/api/projects/${S.currentProjectId}`, { - method: 'PATCH', body: JSON.stringify({ concurrency: cc, autonomy }), + method: 'PATCH', body: JSON.stringify({ concurrency: cc, autonomy, verifyCmd, model }), }); await loadProjects(); // 刷新当前值显示 $('#configPanel').hidden = true; // 保存成功自动收起 diff --git a/web/index.html b/web/index.html index d38ddb0..6a1ddc6 100644 --- a/web/index.html +++ b/web/index.html @@ -77,6 +77,14 @@ +
+ + +