Browse Source

修改pdf宽度单位

hongze 5 months ago
parent
commit
52d929279b
1 changed files with 1 additions and 1 deletions
  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': "%s",
+		'width': "%spx",
         'path': "%s",
         'printBackground': True,
         'margin': {