This commit is contained in:
薇薇安 2026-03-11 20:11:49 +08:00
parent 1446bf852b
commit 3e6ce55663

View File

@ -169,7 +169,8 @@ const ConfigItem = ({ label, config, onUpdate, disabled }) => {
]) ])
const isPctLike = PCT_LIKE_KEYS.has(label) const isPctLike = PCT_LIKE_KEYS.has(label)
const isNumberAsIs = NUMBER_AS_IS_KEYS.has(label) const isNumberAsIs = NUMBER_AS_IS_KEYS.has(label)
const displayLabel = KEY_LABELS[label] || label const baseLabel = KEY_LABELS[label]
const displayLabel = baseLabel ? `${baseLabel} (${label})` : label
const formatPercent = (n) => { const formatPercent = (n) => {
if (typeof n !== 'number' || isNaN(n)) return '' if (typeof n !== 'number' || isNaN(n)) return ''