panxiandiao_i 5 years ago
parent
commit
8ceed956b2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/layout/index.vue
  2. 1 1
      src/views/Platform/presentation/testPresenyL.vue

+ 1 - 1
src/layout/index.vue

@@ -6,7 +6,7 @@
       <div :class="{'fixed-header':fixedHeader}">
         <navbar />
       </div>
-      <app-main />
+      <app-main id="contentttt" />
     </div>
   </div>
 </template>

+ 1 - 1
src/views/Platform/presentation/testPresenyL.vue

@@ -149,7 +149,7 @@ export default {
       // setTimeout(() => {
       var that = this
       that.btn = false
-      await html2canvas(document.getElementById('app-main'), { useCORS: true, width: document.getElementById('app-main').offsetWidth, height: document.getElementById('app-main').scrollHeight }).then(function(canvas) {
+      await html2canvas(document.getElementById('contentttt'), { useCORS: true }).then(function(canvas) {
         var url = canvas.toDataURL('image/png', 1.0)
         url = url.toString().substring(url.indexOf(',') + 1)
         that.postData = { 'reportId': ele.id, 'imgStr': url, 'url': window.location.href, 'emailUser': e }