mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
对接增加iframe嵌入页面
This commit is contained in:
@@ -89,7 +89,20 @@ export const pages=[
|
||||
]},
|
||||
{title:'消息中心',path:'/message/center',hidden:false,children:[
|
||||
{title:'消息中心',path:'index',component:'portal/user/Message',hidden:false}
|
||||
]},
|
||||
]}
|
||||
|
||||
];
|
||||
export const iframes=[
|
||||
{title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
|
||||
{title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
|
||||
{title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},
|
||||
{title:'考试试卷管理', path:'/iframe/exam/papers',hidden:false,component:'exam/TestPaper'},
|
||||
{title:'考试管理', path:'/iframe/exam/tests',hidden:false,component:'exam/ExamList'},
|
||||
{title:'案例管理', path:'/iframe/cases/manages',hidden:false,component:'case/ManageList'},
|
||||
{title:'文章管理', path:'/iframe/article/manages',hidden:false,component:'article/ManageList'},
|
||||
{title:'问答管理', path:'/iframe/qa/manages',hidden:false,component:'qa/ManageList'},
|
||||
{title:'待审核课程', path:'/iframe/course/noapproved',hidden:false,component:'examine/NotApproved'},
|
||||
{title:'已审核课程', path:'/iframe/course/reviewed',hidden:false,component:'examine/Reviewed'}
|
||||
]
|
||||
|
||||
export function routers(){
|
||||
@@ -110,10 +123,17 @@ export function routers(){
|
||||
delete sub.title;
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
myrouters.push(item);
|
||||
n++;
|
||||
});
|
||||
//增加iframe的页面
|
||||
|
||||
iframes.forEach((item,index)=>{
|
||||
item.name='iframe'+index;
|
||||
item.alwaysShow=true;
|
||||
item.meta={title:item.title,icon:"menu",noCache:true},
|
||||
delete item.title;
|
||||
myrouters.push(item);
|
||||
})
|
||||
return myrouters;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user