Ver Fonte

打印测试

lilei há 3 anos atrás
pai
commit
801a339c1e
1 ficheiros alterados com 5 adições e 5 exclusões
  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
   }
   // 针式预览和喷墨预览一样
-  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 => {
     console.log(res, type, printerType)
     if (res.type == 'application/json') {