...
|
...
|
@@ -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();
|
|
|
};
|
...
|
...
|
|