From 87cd9a5300b053f91a9053875d73e01bcc3ca6e9 Mon Sep 17 00:00:00 2001 From: Coze Agent Date: Fri, 2 Oct 2026 20:48:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(viral-video):=20=E7=A7=AF=E5=88=86=E9=A2=84?= =?UTF-8?q?=E4=BC=B0=E6=98=BE=E7=A4=BA=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0?= =?UTF-8?q?=EF=BC=88toFixed(2)=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/pages/viral-video/ViralVideoPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/viral-video/ViralVideoPage.tsx b/apps/web/src/pages/viral-video/ViralVideoPage.tsx index 3095fda5f..8d384b318 100644 --- a/apps/web/src/pages/viral-video/ViralVideoPage.tsx +++ b/apps/web/src/pages/viral-video/ViralVideoPage.tsx @@ -126,7 +126,7 @@ type TabTask = { quality: string upscale: string // 积分预估 - estimatedCredits: number | null // null=加载中/未发起 + estimatedCredits: number | null // null=加载中/未发起;浮点数,展示时 toFixed(2) estimatedCreditsError: boolean // true=接口失败显示 -- // UI 状态 uiStep: UIStep @@ -2106,7 +2106,7 @@ const ViralVideoPage: React.FC = () => { ? "-- 积分" : task.estimatedCredits === null ? "… 积分" - : `${task.estimatedCredits} 积分`} + : `${task.estimatedCredits.toFixed(2)} 积分`} )}