From 26ae9060abad21607afa2219790904a4246975ae Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 7 Jan 2026 12:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E8=AE=BF=E6=B6=89=E8=AF=89--=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/file/list.vue | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/components/file/list.vue b/src/components/file/list.vue index 42fc550..976c842 100644 --- a/src/components/file/list.vue +++ b/src/components/file/list.vue @@ -13,7 +13,7 @@
@@ -69,7 +69,7 @@ @wheel="wheel" > @@ -110,7 +110,7 @@ > @@ -120,7 +120,7 @@ > @@ -129,7 +129,7 @@ v-else-if="getFileType(activeFile.fileName) === FileType.WORD" > { + // `${BASE_PATH}/file/stream/${activeFile.filePath}` + return getFilepath(activeFile.value.filePath) +}) + +function getFilepath(path) { + if (path.startsWith('http://')) { + return path; + } else { + return `${BASE_PATH}/file/stream/${path}`; + } +}