|
@@ -82,7 +82,7 @@ export default {
|
|
|
//组合path:res.data内容都为栏目.所以,点击这些栏目显示的列表应该是信息列表,需要用栏目的id作为查询信息的parten_id查出不同栏目的信息
|
|
|
for (const col of res.data) {
|
|
|
if (col.type === 'content') col.path = `/info/detail?id=${col.content_id}`;
|
|
|
- else if (item.type !== 'url') col.path = `/info/list/${col.id}`;
|
|
|
+ else if (col.type !== 'url') col.path = `/info/list/${col.id}`;
|
|
|
}
|
|
|
return res.data;
|
|
|
}
|