Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-frontend-base into dev

This commit is contained in:
Xu Chang 2024-06-25 12:03:42 +08:00
commit 26a3321729
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ function mergeOperation(schema, entity, oper1, oper2) {
oper1.action = action;
}
else {
assert(false, '不应当有冲突的update模式');
assert(action === oper1.action, '不应当有冲突的update模式');
}
}
const { data: dataMerged } = operMerged;

View File

@ -29,7 +29,7 @@ function mergeOperation(schema, entity, oper1, oper2) {
oper1.action = action;
}
else {
(0, assert_1.assert)(false, '不应当有冲突的update模式');
(0, assert_1.assert)(action === oper1.action, '不应当有冲突的update模式');
}
}
const { data: dataMerged } = operMerged;

View File

@ -53,7 +53,7 @@ function mergeOperation<ED extends EntityDict & BaseEntityDict, T extends keyof
oper1.action = action;
}
else {
assert(false, '不应当有冲突的update模式');
assert(action === oper1.action, '不应当有冲突的update模式');
}
}