From 820493ff7e094706d04291b6d794d0ca70b18c5b Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 13 May 2025 13:09:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=93=81=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dish/dish/index.vue | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/dish/dish/index.vue b/src/views/dish/dish/index.vue index 2784b930..f2fb7ad2 100644 --- a/src/views/dish/dish/index.vue +++ b/src/views/dish/dish/index.vue @@ -1682,22 +1682,22 @@ } }) } - console.log(param.materialList) - // if (this.title === "新增") { - // addMenuDishesApi(param).then(response => { - // this.openDish = false; - // this.$modal.msgSuccess("新增成功"); - // this.getList(); - // }); - // this.btnLoading=false; - // } else { - // editMenuDishesApi(param).then(response => { - // this.openDish = false; - // this.$modal.msgSuccess("修改成功"); - // this.getList(); - // }); - this.btnLoading=false; - // } + // console.log(param.materialList) + if (this.title === "新增") { + addMenuDishesApi(param).then(response => { + this.openDish = false; + this.$modal.msgSuccess("新增成功"); + this.getList(); + }); + this.btnLoading=false; + } else { + editMenuDishesApi(param).then(response => { + this.openDish = false; + this.$modal.msgSuccess("修改成功"); + this.getList(); + }); + this.btnLoading=false; + } } } })