问题遇到的现象和发生背景
测试时发现,vue方法体内不能对事务进行管理
问题相关代码,请勿粘贴截图
updateEvaluate(param)
.then(() => {
return addHistory(param);
})
.then(() => {
this.getList();
this.systemCode = undefined;
this.$message({
type: "success",
message: "任务完成!",
});
});
运行结果及报错内容
addHistory报错,但updateEvaluate已经在数据库执行更新操作了