uu
This commit is contained in:
parent
0e7dcd3d1d
commit
405015882a
@ -82,16 +82,13 @@ export default {
|
||||
},
|
||||
// 给外部调用api,打印自定义图
|
||||
async callPrint({ paperWidth, imgRes } = {}) {
|
||||
try{
|
||||
this.paperWidth = paperWidth || this.paperWidth
|
||||
this.imgRes = imgRes
|
||||
let conSta = await this.$refs.curBlueTooth.autoConnect()
|
||||
this.$emit('autoConnectCallback', conSta)
|
||||
if(conSta) {
|
||||
await this.handlePrint()
|
||||
return true
|
||||
}
|
||||
} catch(e){
|
||||
this.paperWidth = paperWidth || this.paperWidth
|
||||
this.imgRes = imgRes
|
||||
let conSta = await this.$refs.curBlueTooth.autoConnect()
|
||||
this.$emit('autoConnectCallback', conSta)
|
||||
if(conSta) {
|
||||
await this.handlePrint()
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user