+ {/* 分类section */}
+
+ {['全部', ...categories.value.map((category) => category.name)].map((category, index) => (
+ {
+ this.activeCategory = category;
+ this.filterCourses(category);
+ }}
+ >
+ {category}
+
+ ))}
+
+
+ {/* 课程section*/}
+
+ {courses.value.length === 0 ? (
+
+ 暂无相关课程
+
+ ) : (
+ courses.value.map((course, index) => (
+
+

+
+
+
+ {course.date}
+
+
+ {course.duration}
+
+
+
+
+
{course.description}
+
+
+
+

+
{course.author}
+
+
+
+
+
+ ))
+ )}
+
+
+