2026-05-25-13-42-13 调整自动匹配迭代轮次上限

This commit is contained in:
2026-05-25 13:45:47 +08:00
parent 27e0ec626e
commit 21b372f705
6 changed files with 161 additions and 3 deletions

View File

@@ -1097,7 +1097,7 @@ function normalizeAutoMatchWeights(input: unknown): AutoMatchWeights {
function normalizeAutoMatchIterations(value: unknown) {
return typeof value === 'number' && Number.isFinite(value)
? clampNumber(Math.round(value), 2, 12)
? clampNumber(Math.round(value), 2, 50)
: 6;
}

View File

@@ -521,9 +521,9 @@ export default function AutoMatchWorkspace({ projectId, initialPose, onOpenRever
<input
type="number"
min={2}
max={12}
max={50}
value={iterations}
onChange={(event) => setIterations(Math.max(2, Math.min(12, Number(event.target.value) || 2)))}
onChange={(event) => setIterations(Math.max(2, Math.min(50, Number(event.target.value) || 2)))}
className="mt-1 h-10 w-full rounded-lg border border-slate-200 px-3 font-mono text-sm text-slate-700 outline-none focus:border-blue-400"
/>
</label>