Преглед изворни кода

fix 活检退出。fix 离线下载

Michael Wang пре 6 година
родитељ
комит
d6827dd47b

+ 1 - 1
src/features/OfflineExam/OfflineExamList.vue

@@ -30,7 +30,7 @@
               <div v-if="course.paperId" style="display: grid; grid-gap: 10px">
                 <i-button class="qm-primary-button" @click="previewPaper(course)">查看试卷</i-button>
                 <i-button class="qm-primary-button">
-                  <a style="color: white" :href="tk_server_url+'/api/ecs_ques/paper/export/'+course.paperId+'/PAPER/'+user.rootOrgName+'/'+course.paperId + '/offLine'" download>下载试卷</a>
+                  <a style="color: white" :href="tk_server_url+'/api/ecs_ques/paper/export/'+course.paperId+'/PAPER/'+user.rootOrgName+'/'+course.paperId + '/offLine?$key='+user.key+'&$token='+user.token" download>下载试卷</a>
                 </i-button>
                 <!-- <i-button class="qm-primary-button">
                   <a class="qm-primary-button" href="https://ecs-static.qmth.com.cn/offline-exam/答题卡.zip" download>下载答题卡</a>

+ 4 - 0
src/features/OnlineExam/Examing/FaceId.vue

@@ -98,6 +98,10 @@ export default {
 
       this.timeCount = 60; //人脸检测倒计时60秒
       var timeInterval = setInterval(() => {
+        if (!this.showIframe) {
+          clearInterval(timeInterval);
+          return;
+        }
         --this.timeCount;
         if (this.timeCount === 0) {
           this.$Message.error({