提交 5441095c authored 作者: lihuihui's avatar lihuihui

fix: 修改bug

上级 64abe80a
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
startExam(data) { startExam(data) {
const num = parseInt(data.status) const num = parseInt(data.status)
const leaveTimes = data.leave_times || 0 const leaveTimes = data.leave_times || 0
if (leaveTimes > 6) { if (leaveTimes >= 5) {
this.$alert('离开考试页面已超过限定次数,考试结束', { this.$alert('离开考试页面已超过限定次数,考试结束', {
confirmButtonText: '查看结果', confirmButtonText: '查看结果',
callback: action => { callback: action => {
...@@ -95,7 +95,8 @@ export default { ...@@ -95,7 +95,8 @@ export default {
path: '/exam/exam/result', path: '/exam/exam/result',
query: { query: {
exam_id: data.id, exam_id: data.id,
title: data.paper_title title: data.paper_title,
is_create: 1
} }
}) })
} }
......
...@@ -73,6 +73,9 @@ export default { ...@@ -73,6 +73,9 @@ export default {
const param = { const param = {
paper_id: this.examId paper_id: this.examId
} }
if (this.$route.query.is_create) {
param.is_create = 1
}
api.getExamQuestion(param).then(response => { api.getExamQuestion(param).then(response => {
const data = response.data const data = response.data
this.datas = response this.datas = response
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论