完成6075J蓝牙对接
This commit is contained in:
@ -77,6 +77,8 @@
|
||||
import {
|
||||
Logout
|
||||
} from '@/api/common/login.js'
|
||||
import bleTool from '@/utils/BleHelper.js';
|
||||
var ble=null;
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -87,6 +89,7 @@
|
||||
},
|
||||
onLoad() {
|
||||
var these=this;
|
||||
ble=bleTool.getBleTool();
|
||||
uni.getSystemInfo({
|
||||
success(res) {
|
||||
if(res.uniPlatform=='app'){
|
||||
@ -139,7 +142,12 @@
|
||||
uni.showToast({
|
||||
title: '退出成功',
|
||||
icon: 'success'
|
||||
})
|
||||
});
|
||||
if(ble){
|
||||
ble.StopSearch().catch(ex => {});
|
||||
ble.disconnectDevice().catch(ex => {});
|
||||
}
|
||||
|
||||
uni.reLaunch({
|
||||
url: '/pages/common/login/index'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user