lilei 3 yıl önce
ebeveyn
işleme
c7e8db8bff
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      src/libs/JGPrint.js

+ 5 - 5
src/libs/JGPrint.js

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