diff --git a/apps/product/controllers/list.js b/apps/product/controllers/list.js index 3e75ee1..df453cf 100644 --- a/apps/product/controllers/list.js +++ b/apps/product/controllers/list.js @@ -46,7 +46,7 @@ const shop = (shopId, req, res, next, brandInfo) => { Object.assign(result, {page: 'list'}); // 基础店铺装修为空则不cache - if (!result.shopTopBannerBase) { + if (!result.brand || !result.brand.shopBanner) { res.set('Cache-Control', 'no-cache'); } res.render('list/brand', result);