From b5c3a0b9c8c27b9ff01ecd146de704adcfdc1087 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 13 Jun 2022 23:49:41 +0800 Subject: [PATCH] :sparkles: https://github.com/siyuan-note/siyuan/issues/5173 --- app/src/util/history.ts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 53d19dc1c..3de0a2899 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -112,29 +112,10 @@ const renderRepo = (element: HTMLElement) => { return; } let repoHTML = ""; - response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }, index: number) => { - repoHTML += `
  • - 0 ? "" : " fn__hidden"}"> + response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }) => { + repoHTML += `
  • ${item.hCreated}
  • `; - if (item.files.length > 0) { - repoHTML += `"; - } - if (index === 0) { - // fetchPost("/api/history/getDocHistoryContent", { - // historyPath: item.items[0].path - // }, (response) => { - // element.lastElementChild.innerHTML = response.data.content; - // }); - } }); element.lastElementChild.firstElementChild.innerHTML = `${repoHTML}`; });