...
|
...
|
@@ -299,15 +299,14 @@ async function requestHeaderData(type) { |
|
|
return Promise.resolve({headerData: _html});
|
|
|
}
|
|
|
|
|
|
|
|
|
async function getHeaderSubNav(type) {
|
|
|
if (_.isEmpty(cacheNavData)) {
|
|
|
let res = await getHeaderNavAsync();
|
|
|
|
|
|
cacheNavData = _.get(setHeaderData(res.data, type), 'subNavGroup', []);
|
|
|
cacheNavData = getSubNavGroup(res.data, type);
|
|
|
}
|
|
|
|
|
|
return Promise.resolve(_.takeWhile(cacheNavData, o => {
|
|
|
return Promise.resolve(_.find(cacheNavData, o => {
|
|
|
return o.subType === type;
|
|
|
}));
|
|
|
}
|
...
|
...
|
|