|
@@ -441,20 +441,34 @@ export default {
|
|
|
|
|
|
if (isElectron() && !eval(`process.env.PORTABLE_EXECUTABLE_FILE`)) {
|
|
if (isElectron() && !eval(`process.env.PORTABLE_EXECUTABLE_FILE`)) {
|
|
this.disableLoginBtnBecauseAppVersionChecker = true;
|
|
this.disableLoginBtnBecauseAppVersionChecker = true;
|
|
- this.$Message.error({
|
|
|
|
- content: "请与学校申请最新的客户端,进行考试!",
|
|
|
|
- duration: 2 * 24 * 60 * 60,
|
|
|
|
- });
|
|
|
|
|
|
+ if (UA.getBrowser().version !== "1.9.3") {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "请与学校申请最新的客户端,进行考试!",
|
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "电脑环境达不到考试要求,请清理与考试无关软件或更换电脑",
|
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
registerOnResize();
|
|
registerOnResize();
|
|
initScreenShot();
|
|
initScreenShot();
|
|
if (STRICT_CHECK_HOSTS.includes(window.location.hostname)) {
|
|
if (STRICT_CHECK_HOSTS.includes(window.location.hostname)) {
|
|
if (!checkMainExe()) {
|
|
if (!checkMainExe()) {
|
|
this.disableLoginBtnBecauseAppVersionChecker = true;
|
|
this.disableLoginBtnBecauseAppVersionChecker = true;
|
|
- this.$Message.error({
|
|
|
|
- content: "请与学校申请最新的客户端,进行考试!",
|
|
|
|
- duration: 2 * 24 * 60 * 60,
|
|
|
|
- });
|
|
|
|
|
|
+ if (UA.getBrowser().version !== "1.9.3") {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "请与学校申请最新的客户端,进行考试!",
|
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "电脑环境达不到考试要求,请清理与考试无关软件或更换电脑",
|
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
this.checkInCaseOldTimeout = setTimeout(() => {
|
|
this.checkInCaseOldTimeout = setTimeout(() => {
|
|
if (this.newVersionAvailable) {
|
|
if (this.newVersionAvailable) {
|
|
this.$Message.error({
|
|
this.$Message.error({
|