From 6dc8093f97e90b55efa5fb16e1e1891c799f8f04 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 14 Jul 2022 16:56:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/article/contactMine.vue | 7 ++++---
src/views/exam/Test.vue | 6 +++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/views/article/contactMine.vue b/src/views/article/contactMine.vue
index 41b6221d..65e14973 100644
--- a/src/views/article/contactMine.vue
+++ b/src/views/article/contactMine.vue
@@ -16,7 +16,7 @@
-
历史记录
@@ -240,6 +240,7 @@ export default { taskId:'',//考试任务的id lastId:'',//最后一次提交的答卷 canExam:false,//能否参加考试 + noExam:false,//不能参加考试 tipText:'',//提示信息 examStatus:0,//0表无,1表考试中,2表已结束 btnText:'开始考试', @@ -301,6 +302,9 @@ export default { apiTestPaper.getTestInfo(this.examId).then(res=>{ if(res.status==200){ this.canExam = res.result.hasTask; + if(!this.canExam) { + this.noExam = true; + } this.examStatus=res.result.examStatus; this.testPaper = res.result.exam; this.taskId=res.result.taskId;