Browse Source

corUser[0].namePresent 保护

dev_trial
巴林闲侠 2 years ago
parent
commit
37a23bc1d0
  1. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

2
code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

@ -241,7 +241,7 @@ async function detail (ctx) {
...cameraRes.dataValues, ...cameraRes.dataValues,
station: bindStations, station: bindStations,
createUser: { createUser: {
namePresent: corUser[0].namePresent namePresent: corUser.length && corUser[0].namePresent ? corUser[0].namePresent : ''
} }
} }
if (cameraRes.type != 'yingshi') { if (cameraRes.type != 'yingshi') {

Loading…
Cancel
Save