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
zhangxiaoru
9 years ago
Commit
d307e801b5bf2a3ef5bcbbdae40288fb82967c47
1 parent
171e21dc
资讯首页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/editorial/controllers/editorial.js
apps/editorial/index.js
apps/editorial/controllers/editorial.js
View file @
d307e80
...
...
@@ -69,7 +69,7 @@ const index = (req, res) => {
liked
:
true
,
like
:
'8'
}
]
]
},
helpers
:
{
// import component, path depends on your project
...
...
apps/editorial/index.js
View file @
d307e80
...
...
@@ -12,7 +12,7 @@ var app = express();
// set view engin
var
doraemon
=
path
.
join
(
__dirname
,
'../../doraemon/views'
);
// parent view root
var
partials
=
path
.
join
(
__dirname
,
'./views'
);
// parent view root
//
var partials = path.join(__dirname, './views'); // parent view root
app
.
on
(
'mount'
,
function
(
parent
)
{
delete
parent
.
locals
.
settings
;
// 不继承父 App 的设置
...
...
Please
register
or
login
to post a comment