解决一个bug #10

Manually merged
theluyuan merged 1 commits from xuebaoxin into master 2019-11-12 16:50:41 +08:00
Showing only changes of commit 1eff89ee5b - Show all commits

5
app.js
View File

@ -5,8 +5,9 @@ const requter = require("./bin/router.js");
const app = new Koa(); const app = new Koa();
app.use(async (ctx,next)=>{ app.use(async (ctx,next)=>{
// await next(); // await next();
ctx.response.body = {a:1}; console.log(ctx.url)
// next() // ctx.response.body = {a:1};
next()
console.log("执行") console.log("执行")
}); });