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