提交 a7322940 authored 作者: lihuihui's avatar lihuihui

数据加载添加loading

上级 c04d1001
...@@ -83,8 +83,14 @@ export default { ...@@ -83,8 +83,14 @@ export default {
}) })
}, },
initData() { initData() {
Toast.loading({
message: '加载中...',
duration: 5000,
loadingType: 'spinner'
})
api.getAllQuestion({ type: this.$route.query.type, question_type: this.$route.query.questionType }).then(res => { api.getAllQuestion({ type: this.$route.query.type, question_type: this.$route.query.questionType }).then(res => {
this.dataList = res this.dataList = res
Toast.clear()
}) })
// $.ajax({ // $.ajax({
// url: 'https://zy-teaching2.ezijing.com/v2/examination/my-question-all?type=1', // url: 'https://zy-teaching2.ezijing.com/v2/examination/my-question-all?type=1',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论