fix(evaluation-report): 等待导出视图渲染完成

This commit is contained in:
tangweijie 2026-03-06 10:29:52 +08:00
parent e8aefff16b
commit 3198ad6131
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ pnpm-debug
auto-*.d.ts auto-*.d.ts
.idea .idea
.history .history
.omc/

View File

@ -92,8 +92,10 @@ const open = async (id: number, prisonerId?: number) => {
reportId.value = id reportId.value = id
dialogVisible.value = true dialogVisible.value = true
await loadReportDetail(id) await loadReportDetail(id)
// DOM
await nextTick()
try { try {
exportToWord() await exportToWord()
} catch { } catch {
} finally { } finally {
handleClose() handleClose()