feat: add preinit setting

This commit is contained in:
Gabe
2025-09-25 11:31:12 +08:00
parent 1dabbfc4de
commit 393f1a29d5
10 changed files with 613 additions and 538 deletions

View File

@@ -70,7 +70,8 @@ export const syncData = async (key, value) => {
syncMeta = {},
} = await getSyncWithDefault();
if (!syncUrl || !syncKey || (syncType === OPT_SYNCTYPE_WEBDAV && !syncUser)) {
throw new Error("sync args err");
// throw new Error("sync args err");
return;
}
let { updateAt = 0, syncAt = 0 } = syncMeta[key] || {};