This commit is contained in:
aihe 2024-06-25 02:35:58 +08:00
parent a006636a2b
commit d4592accf7
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ export default {
imgData: '',
percentage: 0, // 打印进度
imageUrl: '',
paperWidth: 560,
paperWidth: 480,
}
},
mounted () {
@ -62,7 +62,7 @@ export default {
}
let prtInstance = tanexPrinterUniSdk.createInstance()
prtInstance.init(that.canvasHeight)
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
prtInstance.addBitmapByEG(0, 0, that.imgData)
prtInstance.setPagePrint()
let commond = prtInstance.getPrintCmd()

View File

@ -62,7 +62,7 @@ export default {
previewModel: { show: false },
printModel: { show: false },
imageUrl: [],
paperWidth: 560,
paperWidth: 480,
show: false,
}
},