Showing
1 changed file
with
2 additions
and
2 deletions
@@ -390,13 +390,13 @@ const getShopList = params => { | @@ -390,13 +390,13 @@ const getShopList = params => { | ||
390 | _.forEach(sorts, (val, index) => { | 390 | _.forEach(sorts, (val, index) => { |
391 | shopData.push({ | 391 | shopData.push({ |
392 | shop: brandShops[index], | 392 | shop: brandShops[index], |
393 | - shopSort: val && val.data && val.data.sort | 393 | + shopSort: val && val.data && !_.isFunction(val.data.sort) && val.data.sort |
394 | }); | 394 | }); |
395 | }); | 395 | }); |
396 | } else if (sorts && sorts.code === 200 && sorts.data) { | 396 | } else if (sorts && sorts.code === 200 && sorts.data) { |
397 | shopData.push({ | 397 | shopData.push({ |
398 | shop: brandShop, | 398 | shop: brandShop, |
399 | - shopSort: sorts.data.sort | 399 | + shopSort: !_.isFunction(sorts.data.sort) && sorts.data.sort |
400 | }); | 400 | }); |
401 | } | 401 | } |
402 | 402 |
-
Please register or login to post a comment