修复发送信息bug

This commit is contained in:
fengerli
2025-08-16 14:28:21 +08:00
parent fe5545b642
commit 64529bf573

View File

@ -1033,10 +1033,11 @@
this.isSharedDevice = false;
this.activePermissions = []; // 非分享设备清空权限
}
if (!isUpdate) {
// 关闭加载中
uni.hideLoading()
}
}
},
// 检查权限的方法
hasPermission(permissionCode) {
@ -1054,14 +1055,18 @@
this.handleDeviceData(res, false, isUpdate)
} else {
uni.showToast({
title: error.msg,
title: res.msg,
icon: 'none'
})
if (!isUpdate) {
uni.hideLoading()
}
}
} catch (error) {
if (!isUpdate) {
uni.hideLoading()
}
// uni.showToast({
// title: error.msg,
// icon: 'none'
@ -1076,7 +1081,7 @@
this.handleDeviceData(res, true)
} else {
uni.showToast({
title: error.msg,
title: res.msg,
icon: 'none'
})
}