소스 검색

打印测试

lilei 3 년 전
부모
커밋
db3fd539e6
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
   }
   // 针式预览和喷墨预览一样
-  // 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') {