feat(ui): 配置面板补 verifyCmd / 项目级 model 输入项
在 #configPanel 新增一行 form-row,包含「校验命令」(cfgVerifyCmd) 和 「项目 Model」(cfgModel) 两个文本输入;打开面板时从 project 读取当前值, 保存时通过 PATCH /api/projects/:id 写入(空白 → null 清空)。 任务 ID:tsk_kmdMuWSn0HUS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -77,6 +77,14 @@
|
||||
<button class="btn btn-solid" data-action="save-config">保存配置</button>
|
||||
<button class="btn" data-action="toggle-config">收起</button>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label class="grow">校验命令
|
||||
<input id="cfgVerifyCmd" type="text" placeholder="npm test · go test ./... (可空)" autocomplete="off">
|
||||
</label>
|
||||
<label class="grow">项目 Model
|
||||
<input id="cfgModel" type="text" placeholder="claude-opus-4-5(可空,留空用全局默认)" autocomplete="off">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-row cfg-sync-row">
|
||||
<span id="syncMeta" class="sync-meta"></span>
|
||||
<button id="btnSync" class="btn btn-xs" data-action="sync-todo">⟳ 同步 todo</button>
|
||||
|
||||
Reference in New Issue
Block a user