Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/9570

Vanessad5dfb2a732b5
diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts
index 89c151c990..3fb2f088b3 100644
--- a/app/src/config/repos.ts
+++ b/app/src/config/repos.ts
@@ -403,7 +403,9 @@ export const repos = {
item.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
const formData = new FormData();
formData.append("file", event.target.files[0]);
- fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData);
+ fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, () => {
+ renderProvider(window.siyuan.config.sync.provider);
+ });
});
});
const syncConfigElement = repos.element.querySelector("#reposCloudSyncList");