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 ...res.data
} }
this.dataForm.price = String(res.data.price / 100) this.dataForm.price = String(res.data.price / 100)
// this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({ this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({
// ...obj, ...obj,
// value: JSON.parse(obj.value), value: JSON.parse(obj.value),
// showOption: false showOption: false
// })) }))
this.imageUrl = this.dataForm.image; this.imageUrl = this.dataForm.image;
}).catch(() => { }).catch(() => {