lilei 3 سال پیش
والد
کامیت
34b4917fc5
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/libs/JGPrint.js

+ 4 - 3
src/libs/JGPrint.js

@@ -184,9 +184,10 @@ export const newHdPrint = function (printerType, type, url, params, fileName, ca
     params.type = printerType
   }
   // 阵式预览和喷墨预览一样
-  // if (type == 'preview' && printerType == 'NEEDLE') {
-  //   params.type = 'INK'
-  // }
+  if (type == 'preview' && printerType == 'NEEDLE') {
+    params.type = 'INK'
+    printerType = 'INK'
+  }
   url(params).then(res => {
     if (res.type == 'application/json') {
       var reader = new FileReader()