Procházet zdrojové kódy

Merge branch 'groupJobFair' of https://git.citupro.com/zhengnaiwen_citu/menduner into groupJobFair

Xiao_123 před 2 měsíci
rodič
revize
a5310b7295

+ 9 - 3
src/router/modules/components/recruit/teacher.js

@@ -5,10 +5,11 @@ const teacher = [
   {
     path: '/recruit/teacher',
     show: true,
-    redirect: '/recruit/teacher/studentList',
+    redirect: '/recruit/teacher/studentList/index',
   },
   {
     path: '/recruit/teacher/studentList',
+    // redirect: '/recruit/teacher/studentList/index',
     component: Layout,
     name: 'studentList',
     meta: {
@@ -16,14 +17,19 @@ const teacher = [
       enName: 'Student List',
       icon: 'mdi-account-school-outline'
     },
+    // redirect: '/recruit/teacher/studentList/index',
     children: [
       {
-        path: '/recruit/teacher/studentList',
+        path: 'index',
+        meta: {
+          title: '列表明细',
+          enName: 'List Detail'
+        },
         show: true,
         component: () => import('@/views/recruit/teacher/studentList/index.vue')
       },
       {
-        path: '/recruit/teacher/studentDetails/:id',
+        path: 'detail/:id',
         show: true,
         meta: {
           title: '学生详情',

+ 1 - 1
src/views/recruit/teacher/studentList/index.vue

@@ -117,7 +117,7 @@ const getYuanXiItem = async () => {
 getYuanXiItem()
 
 const studentDetails = (id) => {
-  if (id) router.push(`/recruit/teacher/studentDetails/${id}`)
+  if (id) router.push(`/recruit/teacher/studentList/detail/${id}`)
 }
 
 const exportLoading = ref(false)