From ff37e9500ac7dfd5698b118552794c6b7332c30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Sat, 16 May 2026 23:39:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(workbench):=20=E7=A7=BB=E9=99=A4=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E9=85=8D=E7=BD=AE=E5=B9=B6=E4=BC=98=E5=8C=96formatter?= =?UTF-8?q?=E6=B6=88=E9=99=A4=E6=B5=AE=E7=82=B9=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/web-antd/src/views/dashboard/workbench/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/index.vue index 169812fd..6ebd1fae 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/index.vue @@ -125,7 +125,7 @@ const formatTaxRate = (value: null | number | string | undefined) => { if (value === null || value === undefined || value === '') return ''; const num = Number(value); if (!Number.isFinite(num)) return ''; - return `${num * 100}%`; + return `${Math.round(num * 100 * 1e10) / 1e10}%`; }; const parseTaxRate = (value: string | undefined) => { @@ -362,7 +362,6 @@ onUnmounted(() => { :min="0" :max="1" :step="0.01" - :precision="2" size="small" class="tax-rate-input !h-8 !w-20 !rounded-lg !border-none !bg-white/30 !text-center !text-sm !font-bold dark:!bg-[hsl(240deg_3.7%_22%/30%)]" :formatter="formatTaxRate"