瀏覽代碼

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

Michael Wang 5 年之前
父節點
當前提交
6c30600971
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      src/features/Login/Login.vue
  2. 3 0
      src/features/OnlineExam/CheckComputer.vue

+ 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 =