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

updata

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