Browse Source

enable QRCode exam.qmth.com.cn

Michael Wang 6 năm trước cách đây
mục cha
commit
36dbe9bee7
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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: {