Browse Source

错误修改

dev
LUCAS 2 years ago
parent
commit
6ba6d1e7b6
  1. 2
      api/app/lib/controllers/roadMaintenance/index.js

2
api/app/lib/controllers/roadMaintenance/index.js

@ -128,7 +128,7 @@ async function updateRoadMaintenanceList(ctx) {
await models.RoadMaintenance.update(data, { where: { id: data.id } })
ctx.status = 200;
ctx.body = {message};
ctx.body = {message:'编辑成功'};
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;

Loading…
Cancel
Save