uu
This commit is contained in:
parent
54faa1a8d2
commit
f5ecf271e1
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<tpx-bluetooth-native ref="curBlueTooth">
|
||||
<template v-slot:button>
|
||||
<u-button @click="handlePrint" type="primary">确认打印</u-button>
|
||||
<u-button @click="handlePrint" type="primary">打印</u-button>
|
||||
</template>
|
||||
<template v-slot:content>
|
||||
<view class="canvas-con">
|
||||
@ -142,7 +142,7 @@ export default {
|
||||
}
|
||||
let conSta = await this.$refs.curBlueTooth.autoConnect()
|
||||
if(conSta) {
|
||||
// await this.handlePrint()
|
||||
await this.handlePrint()
|
||||
return true
|
||||
}
|
||||
} catch(e){
|
||||
|
||||
@ -48,7 +48,8 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.startPrint({ imageUrl: 'https://image-c.weimobwmc.com/ol-6NoX9/ed4f6d5da41f4606811aa8018e2918da.jpg', paperWidth: this.paperWidth })
|
||||
// Test
|
||||
// this.startPrint({ imageUrl: 'https://image-c.weimobwmc.com/ol-6NoX9/ed4f6d5da41f4606811aa8018e2918da.jpg', paperWidth: this.paperWidth })
|
||||
},
|
||||
unmounted() {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user