|
@@ -285,11 +285,19 @@ export default {
|
|
|
message: "正在生成报告...",
|
|
|
duration: 0,
|
|
|
onClose() {
|
|
|
- bluetooth.shutdownSendControl(
|
|
|
- $this._deviceId,
|
|
|
- $this._serviceId,
|
|
|
- $this._characteristicId
|
|
|
- );
|
|
|
+ for (var i = 0; i < 2; i++) {
|
|
|
+ bluetooth.shutdownSendControl(
|
|
|
+ $this._deviceId,
|
|
|
+ $this._serviceId,
|
|
|
+ $this._characteristicId
|
|
|
+ );
|
|
|
+ bluetooth.sendEnd(
|
|
|
+ $this._deviceId,
|
|
|
+ $this._serviceId,
|
|
|
+ $this._characteristicId
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
});
|
|
|
},
|