diff --git a/stdiet-ui/src/views/custom/dishes/index.vue b/stdiet-ui/src/views/custom/dishes/index.vue index 51719e3b9..02c114291 100644 --- a/stdiet-ui/src/views/custom/dishes/index.vue +++ b/stdiet-ui/src/views/custom/dishes/index.vue @@ -582,7 +582,7 @@ if (idx === 2) { return acc + parseFloat(dAcc.weight); } - return acc + dAcc[cur.property] * dAcc.weight / 100; + return parseFloat((acc + dAcc[cur.property] * dAcc.weight / 100).toFixed(1)); }, 0); } return arr; diff --git a/stdiet-ui/src/views/custom/ingredient/index.vue b/stdiet-ui/src/views/custom/ingredient/index.vue index 9b3094ded..0fafef339 100644 --- a/stdiet-ui/src/views/custom/ingredient/index.vue +++ b/stdiet-ui/src/views/custom/ingredient/index.vue @@ -136,7 +136,7 @@ :data="ingredientList" @selection-change="handleSelectionChange" > - +