From d91bda0fb03c288adc3c20235c4c936405bd84ee Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 31 May 2026 09:49:43 +0800 Subject: [PATCH] refactor(doc-content): streamline file and manual type handling in document viewer Removed redundant sections for file and manual types in the document content component. Consolidated download actions into a unified header actions area, enhancing the user interface for file downloads and timeline access. Updated styles for improved layout and responsiveness, ensuring a cleaner and more efficient document viewer experience. --- frontend/src/components/doc-content.vue | 228 +++++++++++------------- 1 file changed, 103 insertions(+), 125 deletions(-) diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vue index 2cb37e10..fcd66e6e 100644 --- a/frontend/src/components/doc-content.vue +++ b/frontend/src/components/doc-content.vue @@ -284,7 +284,6 @@ let loadingChunks = false; let pendingRequestedPage: number | null = null; let pendingChunksBeforeLoad = 0; let doc = null; -let down = ref() let mdContentWrap = ref() let url = ref('') // 视图模式:chunks / merged / preview @@ -1007,13 +1006,21 @@ const handleDetailsScroll = () => { {{ getTypeLabel() }} - - - {{ $t('knowledgeStages.traceBtn') }} - +
+ + + + + + +
@@ -1027,35 +1034,26 @@ const handleDetailsScroll = () => { + +