From f0bcc3aaa31f9658cbed0ef4bcc5b6de486fd903 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 26 三月 2025 12:32:19 +0800 Subject: [PATCH] 物料上级分组不显示问题修复 --- rsf-admin/src/page/components/ImportModal.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/rsf-admin/src/page/components/ImportModal.jsx b/rsf-admin/src/page/components/ImportModal.jsx index 82d3557..ea75029 100644 --- a/rsf-admin/src/page/components/ImportModal.jsx +++ b/rsf-admin/src/page/components/ImportModal.jsx @@ -80,7 +80,9 @@ }; const downloadTemplate = async (type) => { - const res = await request.post(`/${value}/template/download`, {}) + const res = await request.post(`/${value}/template/download`, {}, { + responseType: "blob", + }) const url = window.URL.createObjectURL( new Blob([res.data], { type: res.headers["content-type"] }), ); -- Gitblit v1.9.1