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!");