Authored by 刘传洋

search shopSort bug

... ... @@ -390,13 +390,13 @@ const getShopList = params => {
_.forEach(sorts, (val, index) => {
shopData.push({
shop: brandShops[index],
shopSort: val && val.data && val.data.sort
shopSort: val && val.data && !_.isFunction(val.data.sort) && val.data.sort
});
});
} else if (sorts && sorts.code === 200 && sorts.data) {
shopData.push({
shop: brandShop,
shopSort: sorts.data.sort
shopSort: !_.isFunction(sorts.data.sort) && sorts.data.sort
});
}
... ...