6/19 完成菜品管理功能

This commit is contained in:
舒舒 2023-06-19 22:39:10 +08:00
parent f66cb33b84
commit 9211b705c0

View File

@ -292,11 +292,11 @@ export default {
...res.data
}
this.dataForm.price = String(res.data.price / 100)
// this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({
// ...obj,
// value: JSON.parse(obj.value),
// showOption: false
// }))
this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({
...obj,
value: JSON.parse(obj.value),
showOption: false
}))
this.imageUrl = this.dataForm.image;
}).catch(() => {