From d22a02992d557859a8c610fb74e0d070ce936d05 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 08 七月 2024 18:05:26 +0800
Subject: [PATCH] 考试不能多次提交

---
 src/views/exam-list/data-list/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/exam-list/data-list/index.vue b/src/views/exam-list/data-list/index.vue
index 27708ac..d4d849f 100644
--- a/src/views/exam-list/data-list/index.vue
+++ b/src/views/exam-list/data-list/index.vue
@@ -35,7 +35,7 @@
           <div class="right-container">
             <div class="button-container">
               <el-button type="primary" size="large" @click="examClick(item)"
-                :disabled="stateList[item.status].disabled">寮�濮嬭�冭瘯</el-button>
+                :disabled="stateList[item.status].disabled || item.submitStatus ==='finish'">寮�濮嬭�冭瘯</el-button>
             </div>
           </div>
         </div>
@@ -88,7 +88,7 @@
       suggestTime: res.data.suggestTime,
     });
     examStore.setExamDetail(res.data.titleList);
-    examStore.initExam();
+    examStore.initExam(res.data.titleList[0].questionType);
     router.push('/exam');
   }).catch(err => {
 
@@ -106,4 +106,4 @@
 .bottom-item {
   margin-right: 30px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0