From 78f1da3d1bc388f8ad41dac4564980a37626082e Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 12 Aug 2022 10:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=B4=A7=E8=BF=90=E8=BD=A6?= =?UTF-8?q?=E8=BE=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/routes/data/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/app/lib/routes/data/index.js b/api/app/lib/routes/data/index.js index 68f800a0..3b718194 100644 --- a/api/app/lib/routes/data/index.js +++ b/api/app/lib/routes/data/index.js @@ -21,7 +21,7 @@ module.exports = function (app, router, opts) { // 运政 //货运 - async function setVehicleType (ctx, next) { + async function setFreightType (ctx, next) { ctx.request.body = { ...(ctx.request.body || {}), type: 'freight' @@ -29,13 +29,13 @@ module.exports = function (app, router, opts) { await next() } app.fs.api.logAttr['GET/vehicle/freight'] = { content: '获取运政列表', visible: true }; - router.get('/vehicle/freight', setVehicleType, vehicle.get); + router.get('/vehicle/freight', setFreightType, vehicle.get); app.fs.api.logAttr['PUT/vehicle/freight'] = { content: '编辑运政数据', visible: true }; - router.put('/vehicle/freight', setVehicleType, vehicle.edit); + router.put('/vehicle/freight', setFreightType, vehicle.edit); app.fs.api.logAttr['DEL/vehicle/freight/:id'] = { content: '删除运政数据', visible: false }; - router.del('/vehicle/freight/:id', setVehicleType, vehicle.del); + router.del('/vehicle/freight/:id', setFreightType, vehicle.del); //客运车 async function setVehicleType (ctx, next) {