Authored by yyq

default tdk

... ... @@ -151,6 +151,7 @@ try {
// YOHO 前置中间件
app.use(setYohoData());
app.use(riskManagement());
app.use(seo());
app.use(htaccess());
app.use(subDomain());
app.use(mobileRefer());
... ... @@ -162,7 +163,6 @@ try {
app.use(require('./doraemon/middleware/limiter'));
}
app.use(seo());
app.use(setPageInfo());
app.use(layoutTools());
app.use(pageCache());
... ...
... ... @@ -11,7 +11,7 @@ const seoMap = require('./seoConfig');
module.exports = () => {
return (req, res, next) => {
if (!req.xhr) {
Object.assign(res.locals, seoMap[req.path] || seoMap['/']);
Object.assign(res.locals, seoMap[req.path] || seoMap.default);
}
next();
};
... ...