This commit is contained in:
aihe 2024-06-25 21:07:23 +08:00
parent 26e4b368c9
commit ca2d3aab31
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ export default {
data () {
return {
prtPercentage: 0, // 打印进度
paperWidth: 480,
paperWidth: 560,
imgRes: {},
prtQueList: [],
lastExeMark: undefined,
@ -58,7 +58,7 @@ export default {
return reject('打印参数校验不通过')
}
let prtInstance = tanexPrinterUniSdk.createInstance()
// prtInstance.init(that.imgRes.height)
prtInstance.init(that.imgRes.heigh)
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
prtInstance.addBitmapByEG(0, 0, that.imgRes.imgData)
prtInstance.setPagePrint()

View File

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