fix: 面积数值不显示单位
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-02 11:07:10 +00:00
parent 3fe8c80696
commit c6f93aaa44

View File

@@ -174,8 +174,7 @@ export default {
}, },
calcArea(item) { calcArea(item) {
if (item.length && item.width && item.quantity) { if (item.length && item.width && item.quantity) {
const area = (item.length * item.width * item.quantity / 1000000).toFixed(4) return (item.length * item.width * item.quantity / 1000000).toFixed(4)
return area + ' m²'
} }
return '-' return '-'
}, },