@@ -68,6 +76,18 @@
+
+
+
diff --git a/src/components/admin/CourseComponents/CourseDetail.vue b/src/components/admin/CourseComponents/CourseDetail.vue
new file mode 100644
index 0000000..7955767
--- /dev/null
+++ b/src/components/admin/CourseComponents/CourseDetail.vue
@@ -0,0 +1,35 @@
+
+
+
课程详情
+
当前课程ID: {{ courseId }}
+
+
+
+
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index d90a298..c30a8e7 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -36,6 +36,8 @@ import StudentManagement from '@/components/admin/StudentManagement.vue'
import CourseCategory from '@/components/admin/CourseComponents/CourseCategory.vue'
import MaterialCategory from '@/components/admin/CourseComponents/MaterialCategory.vue'
import CourseAnalysis from '@/components/admin/CourseComponents/CourseAnalysis.vue'
+import CourseCreate from '@/components/admin/CourseComponents/CourseCreate.vue'
+import CourseDetails from '@/components/admin/CourseComponents/CourseDetail.vue'
const routes: RouteRecordRaw[] = [
@@ -59,14 +61,14 @@ const routes: RouteRecordRaw[] = [
}
},
{
- path: 'course-management',
- name: 'CourseManagement',
- component: CourseManagement,
- meta: {
- title: '课程管理'
- },
- redirect: '/teacher/course-management/course-category', // 添加默认重定向
- children: [
+ path: 'course-management',
+ name: 'CourseManagement',
+ component: CourseManagement,
+ meta: {
+ title: '课程管理'
+ },
+ redirect: '/teacher/course-management/course-category', // 添加默认重定向
+ children: [
{
path: 'course-category',
name: 'CourseCategory',
@@ -91,6 +93,7 @@ const routes: RouteRecordRaw[] = [
title: '课程分析'
}
}
+
]
},
{
@@ -108,6 +111,22 @@ const routes: RouteRecordRaw[] = [
meta: {
title: '学员管理'
}
+ },
+ {
+ path: 'course-create',
+ name: 'CourseCreate',
+ component: CourseCreate,
+ meta: {
+ title: '创建课程'
+ }
+ },
+ {
+ path: 'course-detail',
+ name: 'TeacherCourseDetail',
+ component: CourseDetails,
+ meta: {
+ title: '课程详情'
+ }
}
]
},
@@ -314,7 +333,7 @@ const routes: RouteRecordRaw[] = [
meta: {
title: '页面未找到'
},
-
+
}
]
diff --git a/src/views/teacher/AdminDashboard.vue b/src/views/teacher/AdminDashboard.vue
index a19a061..f760207 100644
--- a/src/views/teacher/AdminDashboard.vue
+++ b/src/views/teacher/AdminDashboard.vue
@@ -20,21 +20,21 @@
-
+
课程管理
-
+
学员管理
-
+
我的资源
-
+
个人中心
@@ -237,8 +237,9 @@ const updateActiveNavItem = () => {
}
.breadcrumb-separator {
- margin-right: 10px;
+ margin: 0 8px;
color: #0C99DA;
font-size: 16px;
+ content: '>';
}