...
|
...
|
@@ -133,12 +133,7 @@ const _getChannelResource = (params) => { |
|
|
return api.get('operations/api/v5/resource/home', params, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200 && result.data && result.data.list) {
|
|
|
for (let item of result.data.list) {
|
|
|
item.template_name === 'single_image' &&
|
|
|
item.data.length === 1 &&
|
|
|
(item.singleOne = true);
|
|
|
}
|
|
|
if (result && result.code === 200) {
|
|
|
return resourcesProcess(result.data.list);
|
|
|
} else {
|
|
|
logger.error('index resouce is not 200');
|
...
|
...
|
|