Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2019-02-21 11:42:11 +0800
Commit
f0bae101fd1de9071b2f74765eac53ad4beb0c2e
1 parent
7d76357f
add noheader query
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
doraemon/middleware/set-yoho-data.js
doraemon/middleware/set-yoho-data.js
View file @
f0bae10
...
...
@@ -75,6 +75,10 @@ module.exports = () => {
res
.
locals
.
indexUrl
=
helpers
.
urlFormat
(
'/?go=1'
);
// 悬挂首页
res
.
locals
.
showHeader
=
true
;
if
(
req
.
query
.
noheader
)
{
res
.
locals
.
showHeader
=
false
;
}
next
();
};
};
...
...
Please
register
or
login
to post a comment