Forráskód Böngészése

tempDisableBtn => tempDisableBtnAndDownloadPaper

Michael Wang 6 éve
szülő
commit
babedf9024
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/features/OfflineExam/OfflineExamList.vue

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

@@ -42,7 +42,7 @@
                 <a
                   class="qm-primary-button"
                   v-show="!disableDownloadPaperBtn"
-                  @click="() => tempDisableBtn(course)"
+                  @click="() => tempDisableBtnAndDownloadPaper(course)"
                   href="#"
                   download
                 >
@@ -141,7 +141,7 @@ export default {
       window._hmt.push(["_trackEvent", "离线考试页面", "下载作答"]);
       window.location.href = url;
     },
-    tempDisableBtn(course) {
+    tempDisableBtnAndDownloadPaper(course) {
       window._hmt.push(["_trackEvent", "离线考试页面", "下载试卷"]);
       this.disableDownloadPaperBtn = true;
       setTimeout(() => (this.disableDownloadPaperBtn = false), 10 * 1000);