From 077db5fa07cff145d238e831b697e0baa1935a18 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 9 Nov 2022 12:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=A2=9E=E5=8A=A0iframe?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/pages.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/data/pages.js b/src/data/pages.js index 5a3f784b..f105308c 100644 --- a/src/data/pages.js +++ b/src/data/pages.js @@ -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; }