...
|
...
|
@@ -10,7 +10,7 @@ const _processIndexData = (list) => { |
|
|
list = camelCase(list);
|
|
|
|
|
|
_.forEach(list, (data, index) => {
|
|
|
//data.url = `//guang.yohobuy.com/index/index?type=${data.id}`;
|
|
|
// data.url = `//guang.yohobuy.com/index/index?type=${data.id}`;
|
|
|
data.url = `//127.0.0.1:6003/editorial?type=${data.id}`;
|
|
|
if (index === 0) {
|
|
|
data.isActive = true;
|
...
|
...
|
@@ -29,7 +29,7 @@ const getIndexData = () => { |
|
|
if (result && result.code === 200) {
|
|
|
return _processIndexData(result.data);
|
|
|
} else {
|
|
|
logger.error('资讯首页数据返回 code 不是 200');
|
|
|
// logger.error('资讯首页数据返回 code 不是 200');
|
|
|
return {};
|
|
|
}
|
|
|
});
|
...
|
...
|
|