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