修改蓝牙处于异常状态的提示
This commit is contained in:
parent
8c44939bf7
commit
313825f9d4
@ -150,7 +150,7 @@ export const useBluetoothStore = defineStore('ble', {
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确定',
|
confirmText: '确定',
|
||||||
})
|
})
|
||||||
} else if(this.bluetoothStatus === 2) {
|
} else if(this.bluetoothStatus === 2 || this.bluetoothStatus === 3) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '小程序蓝牙功能被禁用,请打开小程序蓝牙权限',
|
content: '小程序蓝牙功能被禁用,请打开小程序蓝牙权限',
|
||||||
@ -162,13 +162,6 @@ export const useBluetoothStore = defineStore('ble', {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if(this.bluetoothStatus === 3) {
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示',
|
|
||||||
content: '蓝牙尚未打开且小程序蓝牙功能被禁用,请先打开蓝牙并打开小程序蓝牙权限',
|
|
||||||
showCancel: false,
|
|
||||||
confirmText: '确定',
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 检查小程序设置
|
// 检查小程序设置
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user