master
significative 2 months ago
parent 8c3778ca78
commit 18d5d1ee0b
  1. 7
      teaching_integration_platform_template/src/views/home/index.vue

@ -69,6 +69,7 @@ import Graph from './components/Graph.vue'
import { getCourseList } from '@/api/course'
import { reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import { getCourseDetailApi } from '@/api/configuration'
interface Page {
pageNo: number
pageSize: number
@ -109,6 +110,12 @@ const getCourseListEvent = async () => {
}
btnTexst.value = '正在加载'
const res: any = await getCourseList(currentPage)
for (const o of res.data.list) {
getCourseDetailApi(o.id).then(res => {
o.description = res.data.description;
couresData.content = [...couresData.content];
});
}
couresData.content = [...couresData.content, ...res.data.list]
couresData.totalcount = res.data.total
btnTexst.value = '加载更多'

Loading…
Cancel
Save