An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/5332
Vanessa6ecf512a73bd
diff --git a/app/src/util/history.ts b/app/src/util/history.tsindex e533c2e209..e53ffdf77a 100644--- a/app/src/util/history.ts+++ b/app/src/util/history.ts@@ -432,14 +432,15 @@ export const openHistory = () => {});break;} else if (type === "removeRepoTagSnapshot" || type === "removeCloudRepoTagSnapshot") {- fetchPost("/api/repo/" + type, {- tag: target.parentElement.getAttribute("data-tag")- }, () => {- if (target.parentElement.parentElement.childElementCount === 1) {- target.parentElement.parentElement.innerHTML = `<li class="b3-list--empty">${window.siyuan.languages.emptyContent}</li>`- } else {- target.parentElement.remove();- }+ const tag = target.parentElement.getAttribute("data-tag");+ confirmDialog(window.siyuan.languages.delete, `${window.siyuan.languages.confirmDelete} <i>${tag}</i>?`, () => {+ fetchPost("/api/repo/" + type, {tag}, () => {+ if (target.parentElement.parentElement.childElementCount === 1) {+ target.parentElement.parentElement.innerHTML = `<li class="b3-list--empty">${window.siyuan.languages.emptyContent}</li>`+ } else {+ target.parentElement.remove();+ }+ });});} else if (type === "uploadSnapshot") {fetchPost("/api/repo/uploadCloudSnapshot", {