From 9211b705c05f829f568c20bbc9182e30ca3369fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=88=92=E8=88=92?= <1033468588@qq.com> Date: Mon, 19 Jun 2023 22:39:10 +0800 Subject: [PATCH] =?UTF-8?q?6/19=20=E5=AE=8C=E6=88=90=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/takeout/dish-add-or-update.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/modules/takeout/dish-add-or-update.vue b/src/views/modules/takeout/dish-add-or-update.vue index 14d4d6f..167cfad 100644 --- a/src/views/modules/takeout/dish-add-or-update.vue +++ b/src/views/modules/takeout/dish-add-or-update.vue @@ -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(() => {