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