提交 4f96cb8d authored 作者: lihuihui's avatar lihuihui

updata

上级 5b806962
......@@ -97,10 +97,11 @@
<script>
import * as api from '@/api/courseExam.js'
import * as courseApi from '@/api/course.js'
import { Icon } from 'vant'
import { Icon, Toast } from 'vant'
export default {
components: {
[Icon.name]: Icon
[Icon.name]: Icon,
[Toast.name]: Toast
},
data() {
return {
......@@ -171,6 +172,7 @@ export default {
getCourseList() {
courseApi.getCourseList().then(response => {
this.courseList = response
Toast.clear()
})
},
async init() {
......@@ -295,6 +297,11 @@ export default {
}
return
} else {
Toast.loading({
message: '加载中...',
forbidClick: true,
duration: 1000
})
if (e === 1) {
window.localStorage.examTab = e
this.getCourseChapterList()
......@@ -324,6 +331,7 @@ export default {
getCourseChapterList() {
api.getCourseChapterList().then(res => {
this.CourseChapter = res
Toast.clear()
})
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论