Browse Source

enable QRCode exam.qmth.com.cn

Michael Wang 6 years ago
parent
commit
36dbe9bee7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/MainLayout/MainLayout.vue

+ 2 - 1
src/components/MainLayout/MainLayout.vue

@@ -112,7 +112,8 @@ export default {
       return JSON.stringify({ rootOrgId, studentCode, identityNumber });
     },
     ifShowQr() {
-      return location.href.includes("ecs-dev");
+      const domain = localStorage.getItem("domain") || "";
+      return domain.includes("ecs-dev") || domain.includes("exam.qmth.com.cn");
     }
   },
   components: {