fix: 移除授权价格输入框货币格式

- 移除NumberField的format-options避免显示货币单位
- 在输入框后添加¥单位标签

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-09 22:39:26 +08:00
parent e7dc05c257
commit 121d8f77db
2 changed files with 32 additions and 26 deletions
+4 -1
View File
@@ -247,10 +247,11 @@ onMounted(() => {
<div class="space-y-2">
<UiLabel>{{ t('admin.agentApps.createForm.price') }} <span class="text-destructive">*</span></UiLabel>
<div class="flex items-center gap-2">
<NumberField
v-model="formData.price"
:min="0"
:format-options="{ style: 'currency', currency: 'CNY', currencyDisplay: 'symbol' }"
:step="0.01"
:disabled="saving"
class="w-32"
>
@@ -260,6 +261,8 @@ onMounted(() => {
<NumberFieldIncrement />
</NumberFieldContent>
</NumberField>
<span class="text-sm text-muted-foreground">¥</span>
</div>
</div>
</UiCardContent>
</UiCard>
@@ -237,10 +237,11 @@ onMounted(() => {
<div class="space-y-2">
<UiLabel>{{ t('admin.agentApps.createForm.price') }} <span class="text-destructive">*</span></UiLabel>
<div class="flex items-center gap-2">
<NumberField
v-model="formData.price"
:min="0"
:format-options="{ style: 'currency', currency: 'CNY', currencyDisplay: 'symbol' }"
:step="0.01"
:disabled="saving"
class="w-32"
>
@@ -250,6 +251,8 @@ onMounted(() => {
<NumberFieldIncrement />
</NumberFieldContent>
</NumberField>
<span class="text-sm text-muted-foreground">¥</span>
</div>
</div>
<div class="space-y-2">