This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user