|
@@ -183,11 +183,11 @@ export const hdPrint = function (printerType, type, url, params, fileName, callb
|
|
if (type !== 'export') {
|
|
if (type !== 'export') {
|
|
params.type = printerType
|
|
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 => {
|
|
url(params).then(res => {
|
|
console.log(res, type, printerType)
|
|
console.log(res, type, printerType)
|
|
if (res.type == 'application/json') {
|
|
if (res.type == 'application/json') {
|