Vanessa 2024-02-07 23:31:17 +08:00
parent c744257805
commit cfbb519554

View file

@ -998,6 +998,9 @@ const updateRef = (protyle: IProtyle, id: string, index = 0) => {
let transactionsTimeout: number;
export const transaction = (protyle: IProtyle, doOperations: IOperation[], undoOperations?: IOperation[]) => {
if (doOperations.length === 0) {
return;
}
if (!protyle) {
// 文档书中点开属性->数据库后的变更操作
fetchPost("/api/transactions", {