修复发送信息bug

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

View File

@ -1033,9 +1033,10 @@
this.isSharedDevice = false;
this.activePermissions = []; // 非分享设备清空权限
}
// 关闭加载中
uni.hideLoading()
if (!isUpdate) {
// 关闭加载中
uni.hideLoading()
}
}
},
// 检查权限的方法
@ -1050,18 +1051,22 @@
async fetchDeviceDetail(id, isUpdate = false) {
try {
const res = await deviceDetail(id)
if(res.code==200){
if (res.code == 200) {
this.handleDeviceData(res, false, isUpdate)
}else{
} else {
uni.showToast({
title: error.msg,
title: res.msg,
icon: 'none'
})
if (!isUpdate) {
uni.hideLoading()
}
}
} catch (error) {
if (!isUpdate) {
uni.hideLoading()
}
} catch (error) {
uni.hideLoading()
// uni.showToast({
// title: error.msg,
// icon: 'none'
@ -1072,15 +1077,15 @@
async fetchSharedDeviceDetail(id) {
try {
const res = await deviceShareId(id)
if(res.code==200){
if (res.code == 200) {
this.handleDeviceData(res, true)
}else{
} else {
uni.showToast({
title: error.msg,
title: res.msg,
icon: 'none'
})
}
} catch (error) {
uni.showToast({
title: error.msg,