From dda216d4aa3ebee41e20fb9628a5cf2777a27a03 Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Mon, 30 Dec 2024 09:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ViewPoint.vue | 4 ++-- src/views/Model.vue | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/ViewPoint.vue b/src/components/ViewPoint.vue index b80c361..1b5e17f 100644 --- a/src/components/ViewPoint.vue +++ b/src/components/ViewPoint.vue @@ -161,10 +161,10 @@ export default { } const res = await infoApi.detP(param); if (res.code == 0) { - ElMessage.success(res.message || "删除成功"); + ElMessage.success(res.data || res.message || "删除成功"); getPointList(); } else { - ElMessage.error(res.message | "删除失败"); + ElMessage.error(res.data || res.message | "删除失败"); } }) .catch(() => { diff --git a/src/views/Model.vue b/src/views/Model.vue index afa7e1e..16b00a1 100644 --- a/src/views/Model.vue +++ b/src/views/Model.vue @@ -138,12 +138,15 @@ export default { type: "warning", }) .then(async () => { - const res = await infoApi.delMb(item); + const param = { + template_name : item.template_name + } + const res = await infoApi.delMb(param); if (res.code == 0) { ElMessage.success(res.data || res.message || "请求成功"); getTableData(); } else { - ElMessage.error(res.data || res.message || "请求失败"); + ElMessage.error(res.message || res.data || "请求失败"); } }) .catch(() => {