修复分量估算错误
This commit is contained in:
parent
e81cb62e51
commit
e08a5e24c6
@ -115,6 +115,7 @@ export default {
|
||||
this.active = 1;
|
||||
this.dishesTypeOptions = (this.type || data.type)
|
||||
.split(",")
|
||||
.sort((a, b) => a - b)
|
||||
.reduce((arr, cur, idx) => {
|
||||
if (idx === 0) {
|
||||
this.selDishes.type = cur;
|
||||
|
@ -95,6 +95,14 @@ export default {
|
||||
this.mUnit = value;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
weight(val) {
|
||||
this.mWeight = val;
|
||||
},
|
||||
unit(val) {
|
||||
this.mUnit = val;
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
unitWeight() {
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user