From 16e2bc6904b6aa4603b91445785fc3669bc44ad0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 18 Oct 2022 18:27:35 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=87=E4=BB=B6=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8C=89=E6=96=87=E6=A1=A3=E5=90=8D=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=20Fix=20https://github.com/siyuan-note/siyuan/issues/?= =?UTF-8?q?6257?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/util/history.ts | 9 +++++---- kernel/model/history.go | 11 ++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index e7f26c24e..874e8f56e 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -29,7 +29,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { const mdElement = element.querySelector('.history__text[data-type="mdPanel"]') as HTMLTextAreaElement; docElement.classList.add("fn__none"); mdElement.classList.add("fn__none"); - if (typeElement.value === "0") { + if (typeElement.value === "0" || typeElement.value === "1") { opElement.removeAttribute("disabled"); notebookElement.removeAttribute("disabled"); assetElement.classList.add("fn__none"); @@ -65,7 +65,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { if (item.items.length > 0) { logsHTML += `