|
@@ -35,7 +35,6 @@ const _processNavData = (list, type) => { |
|
@@ -35,7 +35,6 @@ const _processNavData = (list, type) => { |
35
|
|
35
|
|
36
|
formatData.push(data);
|
36
|
formatData.push(data);
|
37
|
});
|
37
|
});
|
38
|
- console.log(formatData);
|
|
|
39
|
|
38
|
|
40
|
return formatData;
|
39
|
return formatData;
|
41
|
};
|
40
|
};
|
|
@@ -387,8 +386,9 @@ const _getRelateBrand = (id) => { |
|
@@ -387,8 +386,9 @@ const _getRelateBrand = (id) => { |
387
|
|
386
|
|
388
|
_.forEach(result.data, function(data) {
|
387
|
_.forEach(result.data, function(data) {
|
389
|
let domain = data.url;
|
388
|
let domain = data.url;
|
390
|
- domain = domain.substring(domain.indexOf('/')+2, domain.indexOf('.'))
|
|
|
391
|
- console.log(domain)
|
389
|
+
|
|
|
390
|
+ domain = domain.substring(domain.indexOf('/') + 2, domain.indexOf('.'));
|
|
|
391
|
+ console.log(domain);
|
392
|
data.url = `${config.siteUrl}/product/shop/${domain}`;
|
392
|
data.url = `${config.siteUrl}/product/shop/${domain}`;
|
393
|
});
|
393
|
});
|
394
|
return camelCase(result.data);
|
394
|
return camelCase(result.data);
|