Sfoglia il codice sorgente

登录限制:需要最新的浏览器

Michael Wang 5 anni fa
parent
commit
6c30600971

+ 2 - 0
src/features/Login/Login.vue

@@ -357,6 +357,8 @@ export default {
         "snnu.ecs.qmth.com.cn",
         "cup.ecs.qmth.com.cn",
         "swjtu.ecs.qmth.com.cn",
+        "cugr.ecs.qmth.com.cn",
+        "sdu.ecs.qmth.com.cn",
       ].includes(this.$route.params.domain)
     ) {
       if (

+ 3 - 0
src/features/OnlineExam/CheckComputer.vue

@@ -817,6 +817,9 @@ export default {
     });
     this.checkClockRateTimeout = setTimeout(() => {
       fetch("/oe/login", { Method: "HEAD" }).then(e => {
+        // 可能已经离开这个页面了
+        if (!this.time) return;
+
         end = moment(e.headers.get("date"));
         this.time.clockRateStateResolved = true;
         this.time.clockRateDiff =