diff --git a/src/views/share/components/share-file-list-view.vue b/src/views/share/components/share-file-list-view.vue index 142dce3d407f2cdf8b6314a1b0de4e73775faf4c..1e972f9bda364b53b6e48feef2d498828931315b 100644 --- a/src/views/share/components/share-file-list-view.vue +++ b/src/views/share/components/share-file-list-view.vue @@ -79,6 +79,14 @@ > + + + diff --git a/src/views/share/index.vue b/src/views/share/index.vue index 51774958ae696c05df1ca83d850bb827b9bc929a..f00fea246165d54ae2e7be2de1a6c48cc20f7c4d 100644 --- a/src/views/share/index.vue +++ b/src/views/share/index.vue @@ -396,7 +396,7 @@ const handleDownload = async (file: FileItem) => { try { const apiBaseUrl = import.meta.env.VITE_API_BASE_URL || ''; - const downloadUrl = `${apiBaseUrl}/files/download/${file.id}`; + const downloadUrl = `${apiBaseUrl}/apis/file/download/${file.id}`; // 创建一个隐藏的 a 标签来触发下载 const link = document.createElement('a');