提交 6ba78115 authored 作者: lihuihui's avatar lihuihui

fix:修改bug

上级 e8aa4acf
...@@ -84,9 +84,24 @@ export default { ...@@ -84,9 +84,24 @@ export default {
}) })
}, },
startExam(data) { startExam(data) {
// console.log(data, 'data')
window.localStorage.setItem('paperTitle', data.paper_title)
const num = parseInt(data.status) const num = parseInt(data.status)
if (data.leave_times > 6) {
this.$alert('离开考试页面已超过限定次数,考试结束', {
confirmButtonText: '查看结果',
callback: action => {
if (action === 'confirm') {
this.$router.push({
path: '/exam/exam/result',
query: {
exam_id: data.id,
title: data.paper_title
}
})
}
}
})
return false
}
switch (num) { switch (num) {
case 100: case 100:
this.$message({ this.$message({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论