mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
This commit is contained in:
parent
c744257805
commit
cfbb519554
1 changed files with 3 additions and 0 deletions
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue