From 445f37c5bc35d3d07f63e162f40182a0b70c765a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 29 Jan 2026 21:16:56 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11569 --- app/src/history/history.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/history/history.ts b/app/src/history/history.ts index 3292f88d9..2295eaa6f 100644 --- a/app/src/history/history.ts +++ b/app/src/history/history.ts @@ -43,9 +43,9 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { assetElement.classList.add("fn__none"); mdElement.classList.add("fn__none"); docElement.classList.add("fn__none"); - if (typeElement.value === "2") { + if (typeElement.value === "2" || typeElement.value === "4") { notebookElement.setAttribute("disabled", "disabled"); - if (window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 2) { + if (window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 2 && window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 4) { opElement.value = "all"; } opElement.querySelector('option[value="clean"]').classList.remove("fn__none"); @@ -57,7 +57,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { opElement.querySelector('option[value="outline"]').classList.add("fn__none"); } else { notebookElement.removeAttribute("disabled"); - if (window.siyuan.storage[Constants.LOCAL_HISTORY].type === 2) { + if (window.siyuan.storage[Constants.LOCAL_HISTORY].type === 2 || window.siyuan.storage[Constants.LOCAL_HISTORY].type === 4) { opElement.value = "all"; } opElement.querySelector('option[value="clean"]').classList.add("fn__none");