|
@@ -166,15 +166,17 @@ export default {
|
|
|
if (result.errcode === 0) {
|
|
|
let columns = result.data;
|
|
|
for (const col of columns) {
|
|
|
+ console.log(col);
|
|
|
if (col.type === 'content') {
|
|
|
col.path = `/detail/${col.content_id}`;
|
|
|
+ } else if (col.type === 'bugList') {
|
|
|
+ console.log('in function:');
|
|
|
+ col.path = `/newsList/menu/${col.content_id}?title=${col.title}`;
|
|
|
} else if (col.type !== 'url') {
|
|
|
col.path = `/newsList/menu/${col.id}?title=${col.title}`;
|
|
|
if (col.parent.includes('党员')) {
|
|
|
col.path = `/memberList/menu/${col.id}?title=${col.title}`;
|
|
|
}
|
|
|
- } else if (col.type === 'bugList') {
|
|
|
- col.path = `/newsList/menu/${col.content_id}?title=${col.title}`;
|
|
|
}
|
|
|
}
|
|
|
return columns;
|