diff --git a/app.js b/app.js index b7f5e5c..1d0bda2 100644 --- a/app.js +++ b/app.js @@ -16,7 +16,7 @@ const app = express(); /* 配置框架环境 S */ // 设置 express 的中间件 body-parser -app.use(bodyParser.json()); +app.use(bodyParser.json('10mb')); app.use(bodyParser.urlencoded({extended: true})); // 设置 public 为静态文件的存放文件夹