Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
biao
2016-05-31 21:59:23 +0800
Commit
47a2fe972d54272d9bd6de4afe96ae19c1db1b8a
2 parents
15ca8de8
539a00af
Merge branch 'feature/pcchannel' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
doraemon/middleware/seo.js
doraemon/middleware/seo.js
View file @
47a2fe9
...
...
@@ -2,6 +2,11 @@
const
_
=
require
(
'lodash'
);
/**
* 设置seo相关的数据,包括title, keywords, description
* @param {Object} seoData 包含seo属性的对象
* @return {Function} 中间件函数,用于给res.locals对象添加属性
*/
module
.
exports
=
seoData
=>
{
const
defaultSeoData
=
{
/* eslint-disable */
...
...
Please
register
or
login
to post a comment