From 0ee19bee3c3af4ceee25540afb9921cb78bb6034 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 6 Aug 2025 16:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index a43d691..a7a94f6 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -523,7 +523,7 @@ export default { if(!originalNum){ return 0 } - const multiplied = Math.round(originalNum * 100); // 0.28 * 100 = 28 → 处理后为28 + const multiplied = originalNum* 100; // 0.28 * 100 = 28 → 处理后为28 // 2. 判断是否为整数(乘以100后是否无小数) if (multiplied % 1 === 0) { @@ -531,7 +531,7 @@ export default { return multiplied; } else { // 不是整数,保留两位小数(如56.50) - return (multiplied / 100).toFixed(2); + return (multiplied).toFixed(2); } }, async getCarry () {