Просмотр исходного кода

提交版本管理中所要用到的内容

caiaolin 7 лет назад
Родитель
Сommit
dbdf8c2d67
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      operation.js

+ 3 - 3
operation.js

@@ -21,7 +21,7 @@ dbm.connect();
 //引入报表模块
 fileUtils.getGlobbedFiles('./modules/reports/models/*.js').forEach(function(modelPath) {
     require(path.resolve(modelPath));
-})
+});
 
 
 //config.setupCache();
@@ -41,7 +41,7 @@ app.set('view options', {
 app.use(partials());
 
 let bodyParser = require('body-parser');
-app.use(bodyParser.urlencoded({extended: false}));
+app.use(bodyParser.urlencoded({extended: true}));
 app.use(bodyParser.json());
 
 app.use(session({
@@ -74,7 +74,7 @@ app.use(function (req, res, next) {
 //加载路由文件
 fileUtils.getGlobbedFiles('./modules/**/routes/*.js').forEach(function(modelPath) {
     require(path.resolve(modelPath))(app);
-})
+});
 
 app.use(function(req, res, next) {
     res.status(404).send('404 Error');