Showing
1 changed file
with
2 additions
and
2 deletions
@@ -15,7 +15,7 @@ exports.notFound = () => { | @@ -15,7 +15,7 @@ exports.notFound = () => { | ||
15 | }); | 15 | }); |
16 | } | 16 | } |
17 | 17 | ||
18 | - return res.status(500).render('error/404', { | 18 | + return res.render('error/404', { |
19 | module: 'common', | 19 | module: 'common', |
20 | page: 'error', | 20 | page: 'error', |
21 | title: '页面不存在 | YOHO!BLK | 潮流购物逛不停', | 21 | title: '页面不存在 | YOHO!BLK | 潮流购物逛不停', |
@@ -44,7 +44,7 @@ exports.serverError = () => { | @@ -44,7 +44,7 @@ exports.serverError = () => { | ||
44 | }); | 44 | }); |
45 | } | 45 | } |
46 | 46 | ||
47 | - return res.status(500).render('error/500', { | 47 | + return res.render('error/500', { |
48 | err: err, | 48 | err: err, |
49 | module: 'common', | 49 | module: 'common', |
50 | page: 'error', | 50 | page: 'error', |
-
Please register or login to post a comment