From 0d3ecfe8b2dc6b707b60d1e64b6f9f9c7c33bbd3 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期三, 18 六月 2025 17:22:34 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 8e5d057..4be2b34 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -98,8 +98,9 @@ changeValue2(value) { let arr = this.matData.origin.split("/") let mainAnfme = value * parseFloat(arr[1]) * parseFloat(arr[0]) + let flooredNum = Math.floor(mainAnfme * 10000) / 10000; // 鎴柇鍒板皬鏁扮偣鍚�4浣� this.matData.weight = value - this.matData.anfme = mainAnfme + this.matData.anfme = flooredNum }, back() { if (this.matData.anfme === 0) { -- Gitblit v1.9.1