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

chore: update

上级 bcdca06e
<!-- 直播 -->
<script setup lang="ts">
<script setup>
import CoursePlayerResourceListItem from './CoursePlayerResourceListItem.vue'
import { getCourseBook } from '../api'
const props = defineProps<{ bookId: string }>()
const props = defineProps({ bookId: String })
const list = ref([])
function fetchInfo() {
......
......@@ -32,6 +32,7 @@ const electiveTypeText = computed(() => {
return electiveTypes.find(item => parseInt(item.value) === props.data?.elective_type)?.label || ''
})
const detail = reactive<CourseType>({
ebook_id: '',
id: '',
course_id: '',
represent: '',
......
......@@ -26,6 +26,7 @@ export interface UserType {
// 课程类型
export interface CourseType {
ebook_id?: string
course_id: string
cover: string
credit: number
......@@ -72,7 +73,12 @@ export interface LecturerType {
}
// 资源类型
export type ResourceType = FileType & LiveType & PaperType
export type ResourceType = FileType & LiveType & PaperType & BookType
export interface BookType {
book_id: string
chapter_id: string
}
// 资源类型
export interface FileType {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论