fix: 商品管理面积计算改为平方米
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-01 14:06:46 +00:00
parent d7995d8cc5
commit 82efb8c251

View File

@@ -151,8 +151,9 @@ export default {
computedArea() {
const l = parseFloat(this.form.length)
const w = parseFloat(this.form.width)
// 长度(cm) × 宽度(cm) ÷ 10000 = 面积(m²)
if (!isNaN(l) && !isNaN(w) && l > 0 && w > 0) {
return (l * w).toFixed(2)
return (l * w / 10000).toFixed(2)
}
return ''
}