Merge branch 'feature/sale' into release/4.8
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -73,7 +73,10 @@ let index = (req, res, next) => { | @@ -73,7 +73,10 @@ let index = (req, res, next) => { | ||
73 | }); | 73 | }); |
74 | 74 | ||
75 | // 此处 channel 需要读取 cookies 的 channel | 75 | // 此处 channel 需要读取 cookies 的 channel |
76 | - req.cookies._Channel && (res.locals.pageChannel[req.cookies._Channel] = true); | 76 | + if (req.cookies._Channel) { |
77 | + res.locals.pageChannel = {}; | ||
78 | + res.locals.pageChannel[req.cookies._Channel] = true; | ||
79 | + } | ||
77 | res.render('sale/index', Object.assign(params.renderData, { | 80 | res.render('sale/index', Object.assign(params.renderData, { |
78 | content: result, | 81 | content: result, |
79 | floorHeader: { | 82 | floorHeader: { |
-
Please register or login to post a comment