Sfoglia il codice sorgente

修改报告转pdf宽度

hongze 7 mesi fa
parent
commit
0b99750a5f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -162,7 +162,7 @@ async def main():
     await asyncio.sleep(15)
 
     await page.pdf({
-		'width': "%spx",
+		'width': %d,
         'path': "%s",
         'printBackground': True,
         'margin': {