提交 afd5bdf2 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 2168950e
<!-- 直播 --> <!-- 直播 -->
<script setup lang="ts"> <script setup lang="ts">
import type { LiveType } from '@/types' import type { CourseResourceType } from '../types'
import CourseViewMaterialListItem from './CourseViewMaterialListItem.vue' import CourseViewMaterialListItem from './CourseViewMaterialListItem.vue'
import { getCourseMaterialList } from '../api' import { getCourseMaterialList } from '../api'
const { query } = useRoute() const { query } = useRoute()
const courseId = $ref(query.course_id as string) const courseId = $ref(query.course_id as string)
const semesterId = $ref(query.semester_id as string) const semesterId = $ref(query.semester_id as string)
let list = $ref<LiveType[]>([]) let list = $ref<CourseResourceType[]>([])
function fetchList() { function fetchList() {
getCourseMaterialList({ course_id: courseId, semester_id: semesterId }).then(res => { getCourseMaterialList({ course_id: courseId, semester_id: semesterId }).then(res => {
list = res.data.items list = res.data.items
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论