@@ -772,6 +772,19 @@ export default {
examId: this.id
})
.then(res => {
+ if(!res.data.data.length){
+ this.hideDialog()
+ uni.showModal({
+ showCancel:false,
+ content:"该试卷暂无题目",
+ success:function(k){
+ if(k.confirm){
+ uni.navigateBack()
+ }
+ },
+ })
+ return
this.lastTime = res.data.data[0].answerTime && res.data.data[0].answerTime * 60;
//考试时间到了自动交卷
if (this.lastTime) {