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; + } } } })