Showing
2 changed files
with
8 additions
and
0 deletions
@@ -26,6 +26,10 @@ exports.index = (req, res, next) => { | @@ -26,6 +26,10 @@ exports.index = (req, res, next) => { | ||
26 | fuzzyWord: list.fuzzyWord | 26 | fuzzyWord: list.fuzzyWord |
27 | }; | 27 | }; |
28 | 28 | ||
29 | + if (!list || !list.fuzzyWord.length) { | ||
30 | + return next(); | ||
31 | + } | ||
32 | + | ||
29 | return res.render('chanpin', Object.assign({ | 33 | return res.render('chanpin', Object.assign({ |
30 | css: yield css('chanpin.css'), | 34 | css: yield css('chanpin.css'), |
31 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, | 35 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, |
@@ -26,6 +26,10 @@ exports.index = (req, res, next) => { | @@ -26,6 +26,10 @@ exports.index = (req, res, next) => { | ||
26 | fuzzyWord: list.fuzzyWord | 26 | fuzzyWord: list.fuzzyWord |
27 | }; | 27 | }; |
28 | 28 | ||
29 | + if (!list || !list.fuzzyWord.length) { | ||
30 | + return next(); | ||
31 | + } | ||
32 | + | ||
29 | return res.render('hot', Object.assign({ | 33 | return res.render('hot', Object.assign({ |
30 | css: yield css('chanpin.css'), | 34 | css: yield css('chanpin.css'), |
31 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, | 35 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, |
-
Please register or login to post a comment