diff --git a/components/tpx-bluetooth-native/tpx-bluetooth-native.vue b/components/tpx-bluetooth-native/tpx-bluetooth-native.vue index 42c5650..4348810 100644 --- a/components/tpx-bluetooth-native/tpx-bluetooth-native.vue +++ b/components/tpx-bluetooth-native/tpx-bluetooth-native.vue @@ -179,7 +179,6 @@ export default { _this.devices = [] _this.searchLoading = true bluetoothTool.discoveryNewDevice(); - return { res, err } }, // 停止搜寻附近的蓝牙外围设备 async stopDiscoveryPrinter () { diff --git a/components/tpx-bluetooth-print/render-template-native.vue b/components/tpx-bluetooth-print/render-template-native.vue index b0d8011..e6b6cb4 100644 --- a/components/tpx-bluetooth-print/render-template-native.vue +++ b/components/tpx-bluetooth-print/render-template-native.vue @@ -108,7 +108,7 @@ export default { let imgData = await canvasGetImageData({ canvasId: that.canvasId, width: w, height: h, }) hideLoading() that.imgData = imgData - resolve(data) + resolve() }); }catch(e){ hideLoading()