From 8e9f02fc3144fc54f2ff3f1ae28e3e62fe20b0b2 Mon Sep 17 00:00:00 2001 From: Romesum Date: Fri, 8 May 2020 00:00:28 +0800 Subject: [PATCH] =?UTF-8?q?[fix][V]=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- element-vue/src/pages/supManager/index.vue | 14 +---- element-vue/src/router.js | 69 +++++++++++++++------- 2 files changed, 50 insertions(+), 33 deletions(-) diff --git a/element-vue/src/pages/supManager/index.vue b/element-vue/src/pages/supManager/index.vue index d15b384..62148d9 100644 --- a/element-vue/src/pages/supManager/index.vue +++ b/element-vue/src/pages/supManager/index.vue @@ -1,21 +1,13 @@ diff --git a/element-vue/src/router.js b/element-vue/src/router.js index e6e2134..e7a2681 100644 --- a/element-vue/src/router.js +++ b/element-vue/src/router.js @@ -14,6 +14,10 @@ import tb_course from "~/components/tb_course"; import labApplyDetail from "~/pages/labApplyDetail"; import applyLab from "~/pages/teacher/applyLab"; import myApplyRecord from "~/pages/teacher/myApplyRecord"; +import supHome from "~/components/supManager/home"; +import supIndex from "~/components/supManager/index"; +import globalPersonal from "~/components/personal"; +import userManage from "~/components/supManager/userManage"; // 要告诉 vue 使用 vueRouter Vue.use(VueRouter); @@ -24,8 +28,8 @@ const routes = [ redirect: '/login' }, { - path:'/test', - component:test + path: '/test', + component: test }, { path: "/teacher", @@ -33,7 +37,7 @@ const routes = [ children: [ { path: '', - name:'teacher', + name: 'teacher', component: teacher }, { @@ -41,42 +45,63 @@ const routes = [ component: personal }, { - path:'myCourse', - component:myCourse + path: 'myCourse', + component: myCourse }, { - path:'applyLab', - component:applyLab + path: 'applyLab', + component: applyLab }, { - path:'myApplyRecord', - component:myApplyRecord + path: 'myApplyRecord', + component: myApplyRecord } ] }, { - path:'/manager', - component:manager, - children:[ - - ] + path: '/manager', + component: manager, + children: [] }, { - path:'/supManager', - component:supManager + path: '/supManager', + component: supManager, + children: [ + { + path: '', + component: supHome + }, + { + path: 'index', + component: supIndex, + children: [ + { + path: 'personal', + component: globalPersonal + },{ + path: 'labManage', + component: globalPersonal + }, + { + path: 'userManage', + component: userManage + } + ] + } + ] }, { - path:"/login", - component:login + path: "/login", + component: login }, { - path:'/tbCourse', - component:tb_course + path: '/tbCourse', + component: tb_course }, { - path:'/labApplyDetail', - component:labApplyDetail + path: '/labApplyDetail', + component: labApplyDetail } ]