修复发送信息bug
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user