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/pull/16727

Vanessa274d5c756212
diff --git a/app/src/business/openRecentDocs.ts b/app/src/business/openRecentDocs.ts
index 3fa4f67f25..8cb8477041 100644
--- a/app/src/business/openRecentDocs.ts
+++ b/app/src/business/openRecentDocs.ts
@@ -149,6 +149,7 @@ export const openRecentDocs = () => {
sortSelect.addEventListener("change", () => {
// 重新调用 API 获取排序后的数据
fetchPost("/api/storage/getRecentDocs", {sortBy: sortSelect.value}, (newResponse) => {
+ response = newResponse;
renderRecentDocsContent(newResponse.data, dialog.element, searchElement.value);
});
window.siyuan.storage[Constants.LOCAL_RECENT_DOCS].type = sortSelect.value;