Преглед на файлове

enable QRCode exam.qmth.com.cn

Michael Wang преди 6 години
родител
ревизия
36dbe9bee7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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: {