Browse Source

修改环境

shuhao 4 months ago
parent
commit
dc987ad729
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/authentic/Pdf.vue

+ 2 - 2
src/views/authentic/Pdf.vue

@@ -128,7 +128,7 @@ const closeDialog = (key) => {
 };
 function toImg(show) {
   let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
-  let dataURL = canvas.toDataURL('image/png');
+  let dataURL = canvas.toDataURL('image/webp');
   // if(show){
     imgUrl.value = dataURL;
   // }
@@ -143,7 +143,7 @@ onMounted(()=>{
     pdfMap.initMap(data,mapRef.value)
     setTimeout(function(){
       toImg(false)
-    },1000)
+    },1500)
   })
 })
 </script>