Browse Source

fix: feature启用有问题

Michael Wang 5 years ago
parent
commit
6fb72ee9e4
1 changed files with 5 additions and 8 deletions
  1. 5 8
      src/features/Login/Login.vue

+ 5 - 8
src/features/Login/Login.vue

@@ -251,9 +251,7 @@ export default {
             this.disableLoginBtnBecauseVCam)) ||
         this.disableLoginBtnBecauseAppVersionChecker ||
         this.disableLoginBtnBecauseRefreshServiceWorker ||
-        (this.FE_FEATURE_ALLOW_CHECK
-          ? false
-          : this.disableLoginBtnBecauseNotAllowedNative)
+        this.disableLoginBtnBecauseNotAllowedNative
       );
     },
   },
@@ -308,7 +306,6 @@ export default {
     }
   },
   async created() {
-    this.FE_FEATURE_ALLOW_CHECK = true;
     if (navigator.connection) {
       console.log("UA: ", navigator.userAgent);
       console.log(
@@ -807,10 +804,10 @@ export default {
       }
     },
     async checkAllowedClient() {
-      if (!this.FE_FEATURE_ALLOW_CHECK) {
-        this.disableLoginBtnBecauseNotAllowedNative = false;
-        return;
-      }
+      // if (!this.FE_FEATURE_ALLOW_CHECK) {
+      //   this.disableLoginBtnBecauseNotAllowedNative = false;
+      //   return;
+      // }
       if (this.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
         // 检测是否是学生端。 检测是否有node。检测是否能node调用。
         const hasShell = UA.getBrowser().name === "electron-exam-shell";