yemeishu 2 недель назад
Родитель
Сommit
e04fe0934a
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Services/ExamPdfExportService.php

+ 2 - 0
app/Services/ExamPdfExportService.php

@@ -123,6 +123,8 @@ class ExamPdfExportService
             '--disable-dev-shm-usage', // 避免容器内 /dev/shm 过小导致崩溃
             '--no-zygote',
             '--single-process',
+            '--disable-features=VizDisplayCompositor',
+            '--user-data-dir=' . sys_get_temp_dir() . '/chrome-user-data',
             '--print-to-pdf=' . $tmpPdf,
             '--print-to-pdf-no-header',
             '--allow-file-access-from-files',