fix:修改上传数据失败提示
This commit is contained in:
parent
b844a1afe6
commit
47c363f824
@ -114,20 +114,16 @@
|
||||
progress.value++
|
||||
}
|
||||
await asyncData(true)
|
||||
} else if (code === -21 || code === -4) {
|
||||
} else if (code === -21) {
|
||||
pending.value = false
|
||||
$bluetooth.closeBluetoothConnection()
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '蓝牙未打开或在访问附近设备权限未开启',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
pending.value = false
|
||||
$bluetooth.closeBluetoothConnection()
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '上传失败,请重试',
|
||||
title: '上传失败,请保持在锁附近',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user