Ver código fonte

修改报告转pdf宽度

hongze 5 meses atrás
pai
commit
0b99750a5f
1 arquivos alterados com 1 adições e 1 exclusões
  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': {