|
|
|
@ -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 = '加载更多' |
|
|
|
|