提交 d8077782 authored 作者: lhh's avatar lhh

update

上级 e526ac67
......@@ -23,7 +23,6 @@ function fetchList() {
getCourseList(params).then(res => {
courseList = res.data.data.map((item: any, index: number) => {
item.length = res.data.data?.length
item.index = index
return item
})
console.log(courseList, 'courseList')
......
......@@ -84,7 +84,7 @@ function handleStudy() {
courseViewChapterRef.value.study()
}
let detailFlag = $ref(props.data?.length > 1 && props.data?.index === 0 ? true : false)
let detailFlag = $ref(props.data?.length === 1 ? true : false)
const handleDetail = function () {
router.push({
path: '/course/view',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论