From b4a5ee69a423f7eb6409f70c4682a9602d041b4e Mon Sep 17 00:00:00 2001 From: xiaocp2009 <39615122+xiaocp2009@users.noreply.github.com> Date: Tue, 2 Sep 2025 14:13:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=80=81=E6=97=A7=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8(=E7=81=AB=E7=8B=90)=E6=B5=81=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=97=AE=E9=A2=98V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cds-fontend-2025.V1/src/hooks/business/download.ts | 5 +++-- cds-fontend-2025.V1/src/views/home/index.vue | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cds-fontend-2025.V1/src/hooks/business/download.ts b/cds-fontend-2025.V1/src/hooks/business/download.ts index a859c23..2890b40 100644 --- a/cds-fontend-2025.V1/src/hooks/business/download.ts +++ b/cds-fontend-2025.V1/src/hooks/business/download.ts @@ -120,11 +120,12 @@ export function useDownload() { const finalFilename = filename || response.headers.get('Download-Filename') || `download-${timestamp}`; - if (response.body) { + /*老旧浏览器还是存在流式传输兼容问题,暂时屏蔽,只使用普通传输*/ + /*if (response.body) { const contentLength = Number(response.headers.get('Content-Length')); await downloadByStream(response.body, finalFilename, contentLength); return; - } + }*/ const responseContentType = response.headers.get('Content-Type'); const mainType = responseContentType?.split(';')[0]?.trim() || 'application/octet-stream'; diff --git a/cds-fontend-2025.V1/src/views/home/index.vue b/cds-fontend-2025.V1/src/views/home/index.vue index 5df7817..bd2ba5e 100644 --- a/cds-fontend-2025.V1/src/views/home/index.vue +++ b/cds-fontend-2025.V1/src/views/home/index.vue @@ -58,11 +58,11 @@ const setDateRange = (type: 'today' | 'week' | 'month') => { }; //测试登录用户信息 -onMounted(() => { +/*onMounted(() => { console.log(JSON.stringify(userInfo)); console.log("是否营销:" + userInfo.user.userCategory); console.log("营销编号:" + userInfo.user.mktNo); -}); +});*/