From 8a709ba6db50831048f9c3e2452ea6dc6c3de36f Mon Sep 17 00:00:00 2001 From: Bang Hu <hu_bang@hotmail.com> Date: 星期五, 12 九月 2025 15:45:33 +0800 Subject: [PATCH] bug修改代码提交 --- src/utils/axios.ts | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/utils/axios.ts b/src/utils/axios.ts index c4cacaf..784aefe 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -98,6 +98,10 @@ if (config.url?.includes('common/filePreview')) { return response } + const isFile = response.headers['content-type'] === 'application/octet-stream' + if(isFile) { + return response + } if (response.data && response.data.code == 200) { return response.data } else { -- Gitblit v1.8.0