mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-03 14:11:47 +01:00
This commit is contained in:
parent
dafb7673bc
commit
274d5c7562
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue