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