panxiandiao_i 5 лет назад
Родитель
Сommit
86857c2833
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/Platform/presentation/testPresenyL.vue

+ 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, windowWidth: document.getElementById('app-main').offsetWidth, windowHeight: document.getElementById('app-main').scrollHeight }).then(function(canvas) {
+      await html2canvas(document.getElementById('app-main'), { useCORS: true, width: document.getElementById('app-main').offsetWidth, height: document.getElementById('app-main').scrollHeight }).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 }