This commit is contained in:
Vanessa 2023-01-24 20:33:13 +08:00
parent c8b05a6b96
commit ac8748d161
13 changed files with 36 additions and 36 deletions

View file

@ -176,7 +176,7 @@ const setSync = (key?: string, dialog?: Dialog) => {
});
btnElement.addEventListener("click", () => {
dialog.destroy();
fetchPost("/api/sync/setSyncEnable", {enabled: true}, (response) => {
fetchPost("/api/sync/setSyncEnable", {enabled: true}, () => {
window.siyuan.config.sync.enabled = true;
processSync();
confirmDialog(window.siyuan.languages.syncConfGuide4, window.siyuan.languages.syncConfGuide5, () => {