浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
f228fd7d66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/libs/JGPrint.js

+ 1 - 1
src/libs/JGPrint.js

@@ -38,9 +38,9 @@ export const JGPrint = function(data, type, printerType){
       LODOP.PRINT()
     }
   } else {
+    // 喷墨打印
     const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' }))
     document.getElementById('print').innerHTML = '<iframe id="printfsqd" name="printfsqd" src="' + url + '" hidden></iframe>'
-    // 喷墨打印
     if (type == 'preview') { //  预览
       window.open(url)
     } else if (type == 'print') { //  打印