components/labelPrinterComponent/labelPrinterComponent.vue
@@ -101,11 +101,17 @@ } for(let binary of binarys){ let sendSuccess = await this.$refs.bt2.sendMessage(binary); console.log("发送是否成功: ", sendSuccess) if(sendSuccess === false) { return } try{ let sendSuccess = await this.$refs.bt2.sendMessage(binary); console.log("发送是否成功: ", sendSuccess) if(sendSuccess === false) { return } }catch { // 断开蓝牙连接 this.$refs.bt2.closeBluetooth() } } }, async execPrint() {