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 @@