From 3198ad61318fcde981a02e82781c459307a57e9f Mon Sep 17 00:00:00 2001 From: tangweijie <877588133@qq.com> Date: Fri, 6 Mar 2026 10:29:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(evaluation-report):=20=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=A7=86=E5=9B=BE=E6=B8=B2=E6=9F=93=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../prison/evaluation-report/report/CreateReportOutput.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 848638a9..2554533b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ pnpm-debug auto-*.d.ts .idea .history +.omc/ diff --git a/src/views/prison/evaluation-report/report/CreateReportOutput.vue b/src/views/prison/evaluation-report/report/CreateReportOutput.vue index 97bf2fbf..fb1c7a81 100644 --- a/src/views/prison/evaluation-report/report/CreateReportOutput.vue +++ b/src/views/prison/evaluation-report/report/CreateReportOutput.vue @@ -92,8 +92,10 @@ const open = async (id: number, prisonerId?: number) => { reportId.value = id dialogVisible.value = true await loadReportDetail(id) + // 等待视图渲染完成,避免导出时 DOM 仍为空 + await nextTick() try { - exportToWord() + await exportToWord() } catch { } finally { handleClose()