feat(前端功能): 修复PDF打印事件监听的权限兼容问题
build.yaml / build (push) Successful in 38s

This commit is contained in:
xiaoqidun committed 2026-09-10 14:28:03 +08:00
1 parent 52c02d55ef
commit f80420553b
1 file changed
+1 -1
+1 -1
View File
@@ -1362,7 +1362,7 @@ function printPDF(bytes, openSeq) {
return;
}
try {
frame.contentWindow.addEventListener("afterprint", clear, { once: true });
frame.contentDocument?.defaultView.addEventListener("afterprint", clear, { once: true });
frame.contentWindow.print();
resolve();
} catch {