mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
add to history after sync content
This commit is contained in:
7
node_modules/note.js
generated
vendored
7
node_modules/note.js
generated
vendored
@@ -606,6 +606,9 @@ var Note = {
|
|||||||
callback && callback(content);
|
callback && callback(content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 添加到历史中
|
||||||
|
me.addNoteHistory(noteId, content);
|
||||||
},
|
},
|
||||||
|
|
||||||
// sync调用, 用于判断是否真的有冲突
|
// sync调用, 用于判断是否真的有冲突
|
||||||
@@ -828,6 +831,10 @@ var Note = {
|
|||||||
// console.log(note.CreatedTime);
|
// console.log(note.CreatedTime);
|
||||||
callback && callback(newDoc);
|
callback && callback(newDoc);
|
||||||
|
|
||||||
|
// 添加到历史中
|
||||||
|
// 因为没有内容, 所以不用添加
|
||||||
|
// me.addNoteHistory(note.NoteId, note.Content);
|
||||||
|
|
||||||
// 重新统计
|
// 重新统计
|
||||||
Notebook.reCountNotebookNumberNotes(note.NotebookId);
|
Notebook.reCountNotebookNumberNotes(note.NotebookId);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user