From 69b2dc703451871086413766f446dc8ffb18bfd0 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 24 Feb 2020 12:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app.js b/app.js index e05f8f4..20c9a0b 100644 --- a/app.js +++ b/app.js @@ -46,15 +46,15 @@ app.use(async (ctx, next) => { await next(); }) -app.use(async (ctx,next)=>{ - // await next(); - console.log(ctx.url) - // console.time("asd") - // ctx.response.body = {a:1}; - await next() - // console.log("执行") - // console.timeEnd("asd") -}); +// app.use(async (ctx,next)=>{ +// // await next(); +// // console.log(ctx.url) +// // console.time("asd") +// // ctx.response.body = {a:1}; +// await next() +// // console.log("执行") +// // console.timeEnd("asd") +// }); const bodyParser = require('koa-bodyparser');