From d69ccb34aefc2e28d563e37f576f1eb589d30056 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Wed, 21 Oct 2020 00:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E7=94=A8=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E8=8F=9C=E5=8D=95=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/route.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/javascripts/route.js b/public/javascripts/route.js index 81fc6c3..1cecf16 100644 --- a/public/javascripts/route.js +++ b/public/javascripts/route.js @@ -1,4 +1,6 @@ var mock=require('../../public/javascripts/mock') +const multipart = require("connect-multiparty"); +var multipartMiddleware = multipart(); module.exports= { //**通用右键菜单接口 addContextMenu:function (router,prefix, label) @@ -26,6 +28,10 @@ module.exports= { router.patch(`/${prefix}/:y/down`, function (req, res, next) { return res.json(mock.ok(`${label}第${+req.params.y + 1}行跟第${+req.params.y + 2}行交换位置`)) }) + + router.put(`/${prefix}/:y/:column`, multipartMiddleware,function (req, res, next) { + return res.json(mock.ok(`${label}第${+req.params.y + 1}行${label}:列${req.params.column}更新值:${req.body.value}成功`)) + }) } }