Authored by 郭成尧

seoTitle

... ... @@ -219,7 +219,7 @@ const shopFav = (req, res) => {
// 品类落地页
const category = (req, res, next) => {
let seoTitle = '';
let seoTitle = '商品列表';
if (req.query) {
_.forEach(req.query, (perParam, index) => {
... ... @@ -230,9 +230,8 @@ const category = (req, res, next) => {
let params = Object.assign({}, req.query);
try {
seoTitle = decodeURIComponent(req.query.title || req.query.sort_name) || '商品列表';
seoTitle = decodeURIComponent(req.query.title || req.query.sort_name);
} catch (e) {
seoTitle = '商品列表';
logger.error('decodeURIComponent seoTitle: ' + e);
}
... ...