Browse Source

Merge branch 'master' of http://www.sysuimars.cn:3000/feiniao/feiniao-pc-vue

wangsisi 4 months ago
parent
commit
d31ee6e871
1 changed files with 6 additions and 8 deletions
  1. 6 8
      src/views/authentic/Pdf.vue

+ 6 - 8
src/views/authentic/Pdf.vue

@@ -126,12 +126,10 @@ const closeDialog = (key) => {
   }
   emit("closeDialog", "pdf");
 };
-function toImg(show) {
-  let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
-  let dataURL = canvas.toDataURL('image/png');
-  // if(show){
-    imgUrl.value = dataURL;
-  // }
+function toImg() {
+  // let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
+  // let dataURL = canvas.toDataURL('image/webp');
+  //   imgUrl.value = dataURL;
 }
 
 
@@ -142,8 +140,8 @@ onMounted(()=>{
     rowData.value = data
     pdfMap.initMap(data,mapRef.value)
     setTimeout(function(){
-      toImg(true)
-    },1000)
+      toImg(false)
+    },1500)
   })
 })
 </script>