测试时发现,vue方法体内不能对事务进行管理
updateEvaluate(param)
.then(() => {
return addHistory(param);
})
.then(() => {
this.getList();
this.systemCode = undefined;
this.$message({
type: "success",
message: "任务完成!",
});
});
addHistory报错,但updateEvaluate已经在数据库执行更新操作了