Authored by 毕凯

Merge branch 'feature/errorAmend' into 'release/5.5.1'

报错修改



See merge request !431
... ... @@ -71,7 +71,8 @@ let getCateData = (channel) => {
}, {
cache: true
}).then((result) => {
if (!result.code || result.code !== 200 || !result.data) {
if (!result || !result.code || result.code !== 200 || !result.data) {
return [];
}
... ...
... ... @@ -862,6 +862,10 @@ if ($brandHeader.data('isbaseshop') === true) {
url: location.protocol + '//m.yohobuy.com/product/search/filter',
data: defaultOpt,
success: function(data) {
if (data === '') {
return false;
}
$goodsContainer.append(data);
// 初始化filter&注册filter回调
... ...