From 30537041abd5bd51972367441084acc25c6d9531 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Wed, 22 Feb 2023 16:58:06 +0800 Subject: [PATCH] =?UTF-8?q?changes=20=E6=8A=A5=E5=91=8A=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Router/ReportRouter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Router/ReportRouter.py b/App/Router/ReportRouter.py index cc34ea7..4c196c1 100644 --- a/App/Router/ReportRouter.py +++ b/App/Router/ReportRouter.py @@ -677,7 +677,7 @@ async def func(schemas: ReportSchemas.SearchReportFlowReqBody, db: Session = Dep file = "{}信用评级报告初稿.docx".format(rf_item.company) file_path = os.getcwd() + "\\Utils\\File\\generate\\" + file - return FileResponse(file_path, filename=file) + return FileResponse(file_path, filename=file, media_type='application/vnd.openxmlformats-officedocument.wordprocessingml.document') @router.post("/download", summary="下载word报告", tags=["报告生成"])