|
@@ -283,7 +283,7 @@ export default {
|
|
let allMenu = result.data;
|
|
let allMenu = result.data;
|
|
for (let item of allMenu) {
|
|
for (let item of allMenu) {
|
|
if (item.type === 'content') {
|
|
if (item.type === 'content') {
|
|
- if (this.user === 'master') item.path = `/master/news/${item.content_id}`;
|
|
|
|
|
|
+ if (this.user === 'master') item.path = `/master/detail/news/${item.content_id}`;
|
|
else item.path = `/info/detail?id=${item.content_id}`;
|
|
else item.path = `/info/detail?id=${item.content_id}`;
|
|
} else if (item.type !== 'url') {
|
|
} else if (item.type !== 'url') {
|
|
let res = await this.completeMenu(item);
|
|
let res = await this.completeMenu(item);
|
|
@@ -301,11 +301,14 @@ export default {
|
|
//组合path:res.data内容都为栏目.所以,点击这些栏目显示的列表应该是信息列表,需要用栏目的id作为查询信息的parten_id查出不同栏目的信息
|
|
//组合path:res.data内容都为栏目.所以,点击这些栏目显示的列表应该是信息列表,需要用栏目的id作为查询信息的parten_id查出不同栏目的信息
|
|
for (const col of res.data) {
|
|
for (const col of res.data) {
|
|
if (col.type === 'content') {
|
|
if (col.type === 'content') {
|
|
- if(this.user === 'master') {
|
|
|
|
- col.path = `/master/`
|
|
|
|
- }
|
|
|
|
- col.path = `/info/detail?id=${col.content_id}`;
|
|
|
|
- } else if (col.type !== 'url') col.path = `/info/list/${col.id}`;
|
|
|
|
|
|
+ if (this.user === 'master') {
|
|
|
|
+ col.path = `/master/notice/${col.content_id}`;
|
|
|
|
+ } else 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}`;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return res.data;
|
|
return res.data;
|
|
}
|
|
}
|