Explorar el Código

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

Michael Wang hace 5 años
padre
commit
6c30600971
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  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",
         "snnu.ecs.qmth.com.cn",
         "cup.ecs.qmth.com.cn",
         "cup.ecs.qmth.com.cn",
         "swjtu.ecs.qmth.com.cn",
         "swjtu.ecs.qmth.com.cn",
+        "cugr.ecs.qmth.com.cn",
+        "sdu.ecs.qmth.com.cn",
       ].includes(this.$route.params.domain)
       ].includes(this.$route.params.domain)
     ) {
     ) {
       if (
       if (

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

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