Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat: add download button for manual knowledge in doc-content
wizardchen70b73cd257b0
diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vueindex cc51c6f5d..31f88ada5 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 = () => {<div class="manual_title_box"><span class="manual_title">{{ details.title }}</span></div>+ <div class="icon_box" @click="downloadFile()">+ <img class="download_box" src="@/assets/img/download.svg" alt="">+ </div></div><div class="content_header">