Authored by 周少峰

format

@@ -13,9 +13,9 @@ @@ -13,9 +13,9 @@
13 // set view engin 13 // set view engin
14 var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root 14 var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root
15 15
16 -app.disable('x-powered-by'); 16 + app.disable('x-powered-by');
17 17
18 -app.on('mount', function(parent) { 18 + app.on('mount', function(parent) {
19 delete parent.locals.settings; // 不继承父 App 的设置 19 delete parent.locals.settings; // 不继承父 App 的设置
20 Object.assign(app.locals, parent.locals); 20 Object.assign(app.locals, parent.locals);
21 }); 21 });