修复发送信息bug
This commit is contained in:
@ -1033,10 +1033,11 @@
|
|||||||
this.isSharedDevice = false;
|
this.isSharedDevice = false;
|
||||||
this.activePermissions = []; // 非分享设备清空权限
|
this.activePermissions = []; // 非分享设备清空权限
|
||||||
}
|
}
|
||||||
|
if (!isUpdate) {
|
||||||
// 关闭加载中
|
// 关闭加载中
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 检查权限的方法
|
// 检查权限的方法
|
||||||
hasPermission(permissionCode) {
|
hasPermission(permissionCode) {
|
||||||
@ -1054,14 +1055,18 @@
|
|||||||
this.handleDeviceData(res, false, isUpdate)
|
this.handleDeviceData(res, false, isUpdate)
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: error.msg,
|
title: res.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
if (!isUpdate) {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (!isUpdate) {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
}
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// title: error.msg,
|
// title: error.msg,
|
||||||
// icon: 'none'
|
// icon: 'none'
|
||||||
@ -1076,7 +1081,7 @@
|
|||||||
this.handleDeviceData(res, true)
|
this.handleDeviceData(res, true)
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: error.msg,
|
title: res.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user