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

chore: update

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