Browse Source

下载的手机版长图和pdf页面,公司logo位置展示不一致

kobe6258 1 month ago
parent
commit
6ea7a95328
1 changed files with 4 additions and 4 deletions
  1. 4 4
      services/smart_report.go

+ 4 - 4
services/smart_report.go

@@ -167,10 +167,10 @@ async def main():
         'printBackground': True,
         'format': "A2",
         'margin': {
-            'top': '10mm',
-            'bottom': '10mm',
-            'left': '10mm',
-            'right': '10mm'
+            'top': '20px',
+            'bottom': '20px',
+            'left': '20px',
+            'right': '20px'
         }
     })
     await browser.close()