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
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
72ba410e79076dcb23e2197f159a77504c276d18
1 parent
cce513c7
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
apps/index/router.js
doraemon/models/HeaderModel.js
apps/index/router.js
View file @
72ba410
...
...
@@ -13,7 +13,10 @@ const homeDataController = require(cRoot);
// Your controller here
router
.
get
(
'/'
,
function
(
req
,
res
)
{
homeDataController
.
getHeaderData
(
function
(
err
,
data
)
{
data
.
headerData
.
navbars
[
0
].
active
=
true
;
res
.
render
(
'index'
,
data
);
});
});
module
.
exports
=
router
;
...
...
doraemon/models/HeaderModel.js
View file @
72ba410
var
rp
=
require
(
'request-promise'
);
var
_
=
require
(
'lodash'
);
var
API
=
require
(
'../../library/api'
);
function
getConfig
()
{
return
{
...
...
Please
register
or
login
to post a comment