Authored by 周少峰

list url

... ... @@ -51,11 +51,11 @@ const listXmlData = () => {// eslint-disable-line
_.forEach(_.get(result[1], 'headerData.subNavGroup'), val => {
_.forEach(val.subNav, sub => {
if (listPatten.test(sub.link)) {
listNav.push({url: `https:${sub.link}`, changefreq: 'daily', priority: 0.3});
listNav.push({url: sub.link, changefreq: 'daily', priority: 0.3});
}
_.forEach(_.get(sub, 'thirdNav'), third => {
if (listPatten.test(third.link)) {
listNav.push({url: `https:${third.link}`, changefreq: 'daily', priority: 0.3});
listNav.push({url: third.link, changefreq: 'daily', priority: 0.3});
}
});
});
... ...