提交 10772e4a authored 作者: lihuihui's avatar lihuihui

updata

上级 831c6aaf
......@@ -209,13 +209,24 @@ export default {
// clearInterval(this.cache)
},
mounted () {
if (!this.$route.query.id) {
if (this.$route.query.id === undefined) {
this.swiper.slideTo(0, 1000, false)
clearInterval(this.initTime)
this.initTime = setInterval(() => {
this.examSubmit(0)
}, 3000)
if (this.$route.query.tag_id !== undefined) {
Exam.getExam(this.requestParam, decodeURIComponent(this.requestParam.papersUrl)).then(res => {
if (parseInt(res.status) === 1 || parseInt(res.status) === 2) {
this.requestParam.is_create = 1
} else {
this.requestParam.is_create = 0
}
this.initData()
})
} else {
this.initData()
}
} else {
this.examEnd()
this.initData(0)
......@@ -514,13 +525,6 @@ export default {
if (this.$route.query.id === undefined) {
this.setClock(times)
}
if (parseInt(res.status) === 1 || parseInt(res.status) === 2) {
if (this.$route.query.tag_id !== undefined && this.$route.query.id === undefined) {
this.$emit('goExamResult', this.requestParam)
}
this.examEnd()
this.scrollDom()
}
setTimeout(() => {
this.examSubmit(0)
}, 1000)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论