fix-首页:获取单兵设备无人机报错

This commit is contained in:
guoyue 2022-09-22 09:24:17 +08:00
parent c55eedc5b4
commit 6f6ec109e4
1 changed files with 6 additions and 3 deletions

View File

@ -166,6 +166,9 @@ const getAppResources = (type, obj) => {
name: '无人机', name: '无人机',
num: total, num: total,
}) })
}).catch(err => {
console.log('err--无人机---------->', err);
}) })
getSoldierData('单兵设备').then(res => { getSoldierData('单兵设备').then(res => {
let { total = 0 } = res.data.data; let { total = 0 } = res.data.data;
@ -173,6 +176,9 @@ const getAppResources = (type, obj) => {
name: '单兵设备', name: '单兵设备',
num: total, num: total,
}) })
}).catch(err => {
console.log('err--单兵设备---------->', err);
}) })
} }
}) })
@ -213,11 +219,8 @@ const getSoldierData = (name) => {
if (res.data.code !== 0) { if (res.data.code !== 0) {
return message.error(res.data.msg) return message.error(res.data.msg)
} }
console.log('total------------>', total);
}).catch(err => { }).catch(err => {
reject(err) reject(err)
message.error(err)
}) })
}) })
} }