From 70b73cd257b06d722704ed468e7002b6a64d1e84 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 16 Mar 2026 18:25:41 +0800 Subject: [PATCH] feat: add download button for manual knowledge in doc-content Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/doc-content.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vue index cc51c6f5..31f88ada 100644 --- a/frontend/src/components/doc-content.vue +++ b/frontend/src/components/doc-content.vue @@ -627,7 +627,8 @@ const downloadFile = () => { const link = document.createElement("a"); link.style.display = "none"; link.setAttribute("href", url.value); - link.setAttribute("download", props.details.title); + link.setAttribute("download", props.details.type === 'manual' ? props.details.title + '.md' : props.details.title); + document.body.appendChild(link); link.click(); nextTick(() => { document.body.removeChild(link); @@ -697,6 +698,9 @@ const handleDetailsScroll = () => {
{{ details.title }}
+
+ +