From 20a20f8d5e3c040bac4b0a46adb50638541c8430 Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Sun, 14 Apr 2024 21:35:37 +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/AddData.vue | 2 -- src/components/EditPass.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/AddData.vue b/src/components/AddData.vue index 331869c..0684821 100644 --- a/src/components/AddData.vue +++ b/src/components/AddData.vue @@ -289,8 +289,6 @@ export default { }; console.log('编辑数据3', obj); } - - const res = props.type === '0' ? await infoApi.saveTx(obj) : await infoApi.editTx(obj); if (res.code == 0) { ElMessage.success(res.message || "请求成功"); diff --git a/src/components/EditPass.vue b/src/components/EditPass.vue index e1f001a..5d5b6ef 100644 --- a/src/components/EditPass.vue +++ b/src/components/EditPass.vue @@ -98,7 +98,7 @@ export default { // 关闭弹框 ctx.emit("dialogSuccess"); } else { - ElMessage.error(res.message ); + ElMessage.error(res.message); } } else { console.log("error submit!");