From 47e479ba348dd7daff2aa929ee86c3ff6508cd6b Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Mon, 19 Aug 2024 13:53:31 +0800 Subject: [PATCH] uu --- components/tpx-bluetooth-native/tpx-bluetooth-native.vue | 3 +++ components/tpx-bluetooth-print/render-template-native.vue | 5 ++++- components/tpx-bluetooth-print/tpx-bluetooth-print.vue | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/components/tpx-bluetooth-native/tpx-bluetooth-native.vue b/components/tpx-bluetooth-native/tpx-bluetooth-native.vue index 31f398f..99d2b0c 100644 --- a/components/tpx-bluetooth-native/tpx-bluetooth-native.vue +++ b/components/tpx-bluetooth-native/tpx-bluetooth-native.vue @@ -194,6 +194,9 @@ export default { this.deviceName = item.name //连接蓝牙 let bl = await this.connect(this.deviceId) + if(bl) { + this.$emit('onConnected') + } }, async connect (deviceId) { var _this = this diff --git a/components/tpx-bluetooth-print/render-template-native.vue b/components/tpx-bluetooth-print/render-template-native.vue index ac9c6e0..98e8ffe 100644 --- a/components/tpx-bluetooth-print/render-template-native.vue +++ b/components/tpx-bluetooth-print/render-template-native.vue @@ -1,5 +1,5 @@