Browse Source

备注排序x

release_0.0.2
巴林闲侠 2 years ago
parent
commit
ffc064fcb0
  1. 6
      code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

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

@ -33,10 +33,8 @@ async function getCameraProject (ctx, next) {
attributes: ['token'] attributes: ['token']
}, { }, {
model: models.CameraRemark, model: models.CameraRemark,
attributes: ['remark'], attributes: ['id', 'remark'],
order: [ order: ['id']
['id', 'DESC']
],
}], }],
distinct: true distinct: true
} }

Loading…
Cancel
Save