Browse Source

fix 二维码扫描提示逻辑

Michael Wang 5 years ago
parent
commit
440dd1bf49

+ 1 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -663,7 +663,7 @@ export default {
           // 目前只针对音频题有丢弃的可能
           if (
             q.transferFileType === "PIC" &&
-            (q.order != this.$route.params.order || this.uploadModalVisible)
+            (q.order != this.$route.params.order || !this.uploadModalVisible)
           ) {
             acknowledgeStatus = "DISCARDED";
           }

+ 2 - 0
src/features/OnlineExam/Examing/UploadPhotos.vue

@@ -158,6 +158,8 @@ export default {
     // },
     prepareUpload() {
       this.uploadModalVisible = true;
+      this.qrScanned = false;
+      this.uploaded = false;
       this.totalList = [...this.uploadList];
     },
     modalCloseClicked() {