Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
9 years ago
Commit
a7370c55bbc314a97c7352d41fb016301c662997
1 parent
092dacd8
注册路由修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
doraemon/middleware/display.js
doraemon/middleware/display.js
View file @
a7370c5
...
...
@@ -28,6 +28,10 @@ module.exports = () => {
}
if
(
!
isHead
)
{
// 登录状态
if
(
req
.
user
.
uid
)
{
data
.
userName
=
req
.
user
.
username
;
}
res
.
render
(
path
,
data
);
}
else
{
header
.
requestHeaderData
(
'boys'
).
then
(
result
=>
{
...
...
Please
register
or
login
to post a comment