修复发送信息bug
This commit is contained in:
@ -1033,9 +1033,10 @@
|
|||||||
this.isSharedDevice = false;
|
this.isSharedDevice = false;
|
||||||
this.activePermissions = []; // 非分享设备清空权限
|
this.activePermissions = []; // 非分享设备清空权限
|
||||||
}
|
}
|
||||||
|
if (!isUpdate) {
|
||||||
// 关闭加载中
|
// 关闭加载中
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 检查权限的方法
|
// 检查权限的方法
|
||||||
@ -1050,18 +1051,22 @@
|
|||||||
async fetchDeviceDetail(id, isUpdate = false) {
|
async fetchDeviceDetail(id, isUpdate = false) {
|
||||||
try {
|
try {
|
||||||
const res = await deviceDetail(id)
|
const res = await deviceDetail(id)
|
||||||
if(res.code==200){
|
if (res.code == 200) {
|
||||||
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
if (!isUpdate) {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (error) {
|
|
||||||
uni.hideLoading()
|
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// title: error.msg,
|
// title: error.msg,
|
||||||
// icon: 'none'
|
// icon: 'none'
|
||||||
@ -1072,15 +1077,15 @@
|
|||||||
async fetchSharedDeviceDetail(id) {
|
async fetchSharedDeviceDetail(id) {
|
||||||
try {
|
try {
|
||||||
const res = await deviceShareId(id)
|
const res = await deviceShareId(id)
|
||||||
if(res.code==200){
|
if (res.code == 200) {
|
||||||
this.handleDeviceData(res, true)
|
this.handleDeviceData(res, true)
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: error.msg,
|
title: res.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: error.msg,
|
title: error.msg,
|
||||||
|
Reference in New Issue
Block a user