fix(frontend): 独立密钥编辑模式额度区域空白问题

v-else-if 条件遗漏导致编辑模式下非 unlimited 的密钥
额度区域既不显示 Input 也不显示提示文本,对齐 UserFormDialog
的 v-else 逻辑。
This commit is contained in:
LewisPen
2026-03-13 10:58:34 +08:00
parent ded6b5b081
commit 00a0371997

View File

@@ -207,9 +207,9 @@
@update:model-value="(v) => form.initial_balance_usd = parseNumberInput(v, { allowFloat: true, min: 0.01 })" @update:model-value="(v) => form.initial_balance_usd = parseNumberInput(v, { allowFloat: true, min: 0.01 })"
/> />
<span <span
v-else-if="form.unlimited_balance" v-else
class="flex h-10 w-full items-center rounded-lg border bg-background px-3 text-sm text-muted-foreground opacity-60" class="flex h-10 w-full items-center rounded-lg border bg-background px-3 text-sm text-muted-foreground opacity-60"
>无限制</span> >{{ form.unlimited_balance ? '无限制' : '按钱包余额限制' }}</span>
</div> </div>
<Switch <Switch
:model-value="form.unlimited_balance ?? false" :model-value="form.unlimited_balance ?? false"