Showing
1 changed file
with
1 additions
and
2 deletions
@@ -19,10 +19,9 @@ exports.index = (req, res, next) => { | @@ -19,10 +19,9 @@ exports.index = (req, res, next) => { | ||
19 | }); | 19 | }); |
20 | 20 | ||
21 | indexModel.index(params).then(result => { | 21 | indexModel.index(params).then(result => { |
22 | - result.isLogin = true; | ||
23 | - | ||
24 | if (result) { | 22 | if (result) { |
25 | res.render('index', Object.assign(result, { | 23 | res.render('index', Object.assign(result, { |
24 | + isLogin: params.uid ? true : false, | ||
26 | module: 'home', | 25 | module: 'home', |
27 | page: 'index', | 26 | page: 'index', |
28 | title: 'Yoho!Buy 有货', | 27 | title: 'Yoho!Buy 有货', |
-
Please register or login to post a comment