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 = () => {