🎨 Support setting automatic sync interval https://github.com/siyuan-note/siyuan/issues/13448

This commit is contained in:
Daniel 2024-12-14 12:08:21 +08:00
parent 775efe6a8e
commit 967b8993ef
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -451,7 +451,7 @@ export const repos = {
if (43200 < interval) {
interval = 43200;
}
syncIntervalElement.value = interval.toString();
fetchPost("/api/sync/setSyncInterval", {interval: interval}, () => {
window.siyuan.config.sync.interval = interval;
processSync();