diff --git a/wuye-manager-uniapp/pages/index/index.vue b/wuye-manager-uniapp/pages/index/index.vue index b00e9b0..1d9ea7d 100644 --- a/wuye-manager-uniapp/pages/index/index.vue +++ b/wuye-manager-uniapp/pages/index/index.vue @@ -257,11 +257,11 @@ const getInspectionData = () => { pendingCount.value = 0 InspectedCount.value = 0 } + } else { + uni.showToast({ title: res.msg || '获取失败', icon: 'none' }) } - }else{ - uni.showToast({ title: res.msg || '获取失败', icon: 'none' }) - } - }).catch(err => { + }) + .catch(err => { uni.showToast({ title: err.msg || '获取失败', icon: 'none' }) }) }