|
@@ -206,8 +206,6 @@ export default {
|
|
|
let allMenu = result.data;
|
|
|
for (let item of allMenu) {
|
|
|
if (item.type === 'content') {
|
|
|
- // if (this.user === 'master') item.path = `/master/detail/news/${item.content_id}`;
|
|
|
- // else item.path = `/info/detail?id=${item.content_id}`;
|
|
|
item.path = `/info/detail?id=${item.content_id}`;
|
|
|
} else if (item.type !== 'url') {
|
|
|
let res = await this.completeMenu(item);
|
|
@@ -225,14 +223,8 @@ export default {
|
|
|
//组合path:res.data内容都为栏目.所以,点击这些栏目显示的列表应该是信息列表,需要用栏目的id作为查询信息的parten_id查出不同栏目的信息
|
|
|
for (const col of res.data) {
|
|
|
if (col.type === 'content') {
|
|
|
- // if (this.user === 'master') {
|
|
|
- // col.path = `/master/notice/${col.content_id}`;
|
|
|
- // } else col.path = `/info/detail?id=${col.content_id}`;
|
|
|
col.path = `/info/detail?id=${col.content_id}`;
|
|
|
} else if (col.type !== 'url') {
|
|
|
- // if (this.user === 'master') {
|
|
|
- // col.path = `/master/detail/news/${col.id}`;
|
|
|
- // } else col.path = `/info/list/${col.id}`;
|
|
|
col.path = `/info/list/${col.id}`;
|
|
|
}
|
|
|
}
|
|
@@ -300,7 +292,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
makeList(mod) {
|
|
|
- console.log(mod);
|
|
|
if (mod.category === 'news') {
|
|
|
let arr = [];
|
|
|
let colObject = {};
|