From b3fedd4221b807a07058be9d5d5d8ba8998adbcb Mon Sep 17 00:00:00 2001 From: Bang Hu <hu_bang@hotmail.com> Date: 星期四, 11 九月 2025 21:35:31 +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