From a4f548b8478a06355ac662cf52e129189ab3d5d8 Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 14:11:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E5=AE=BD=E5=BA=A6=E5=8D=95=E4=BD=8D=E6=94=B9?= =?UTF-8?q?=E4=B8=BAmm=EF=BC=8C=E9=9D=A2=E7=A7=AF=E6=94=B9=E4=B8=BAm=C2=B2?= =?UTF-8?q?=EF=BC=8C=E6=9C=80=E5=A4=9A5=E4=BD=8D=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/manage.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/product/manage.vue b/src/pages/product/manage.vue index b36284c..d119da1 100644 --- a/src/pages/product/manage.vue +++ b/src/pages/product/manage.vue @@ -65,17 +65,17 @@ - + - 长度 - + 长度(mm) + - 宽度 - + 宽度(mm) + - 面积 + 面积(m²) @@ -151,9 +151,9 @@ export default { computedArea() { const l = parseFloat(this.form.length) const w = parseFloat(this.form.width) - // 长度(cm) × 宽度(cm) ÷ 10000 = 面积(m²) + // 长度(mm) × 宽度(mm) ÷ 1000000 = 面积(m²) if (!isNaN(l) && !isNaN(w) && l > 0 && w > 0) { - return (l * w / 10000).toFixed(2) + return (l * w / 1000000).toFixed(4) } return '' }