浏览代码

打印测试

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

+ 5 - 5
src/libs/JGPrint.js

@@ -189,11 +189,11 @@ export const hdPrint = function (printerType, type, url, params, fileName, callb
     params.type = printerType
     params.type = printerType
   }
   }
   // 针式预览和喷墨预览一样
   // 针式预览和喷墨预览一样
-  if (type == 'preview') {
-    params.type = 'INK'
-    params.printType = 'INK'
-    printerType = 'INK'
-  }
+  // if (type == 'preview') {
+  //   params.type = 'INK'
+  //   params.printType = 'INK'
+  //   printerType = 'INK'
+  // }
   url(params).then(res => {
   url(params).then(res => {
     console.log(res, type, printerType)
     console.log(res, type, printerType)
     if (res.type == 'application/json') {
     if (res.type == 'application/json') {