|
@@ -808,7 +808,14 @@ export default {
|
|
|
// this.disableLoginBtnBecauseNotAllowedNative = false;
|
|
|
// return;
|
|
|
// }
|
|
|
- if (this.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
|
|
|
+ if (
|
|
|
+ this.QECSConfig.LOGIN_SUPPORT.includes("BROWSER") &&
|
|
|
+ this.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")
|
|
|
+ ) {
|
|
|
+ // FIXME: 暂时允许选择浏览器的可以在浏览器中访问,后期浏览器应该跳转到移动端
|
|
|
+ this.disableLoginBtnBecauseNotAllowedNative = false;
|
|
|
+ return;
|
|
|
+ } else if (this.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
|
|
|
// 检测是否是学生端。 检测是否有node。检测是否能node调用。
|
|
|
const hasShell = UA.getBrowser().name === "electron-exam-shell";
|
|
|
const hasNode = typeof nodeRequire !== "undefined";
|