|
@@ -379,12 +379,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (["cup.ecs.qmth.com.cn"].includes(this.$route.params.domain)) {
|
|
|
+ // console.log(UA.getBrowser(), chromeUA);
|
|
|
+ if (
|
|
|
+ UA.getBrowser().name !== "electron-exam-shell" ||
|
|
|
+ (UA.getBrowser().major !== "2" && UA.getBrowser().major !== "1") ||
|
|
|
+ chromeUA.major < "58"
|
|
|
+ ) {
|
|
|
+ this.disableLoginBtnBecauseAppVersionChecker = true;
|
|
|
+ this.$Message.error({
|
|
|
+ content: "请与学校申请最新的客户端,进行考试!",
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (
|
|
|
- [
|
|
|
- "cup.ecs.qmth.com.cn",
|
|
|
- "cugr.ecs.qmth.com.cn",
|
|
|
- "sdu.ecs.qmth.com.cn",
|
|
|
- ].includes(this.$route.params.domain)
|
|
|
+ ["cugr.ecs.qmth.com.cn", "sdu.ecs.qmth.com.cn"].includes(
|
|
|
+ this.$route.params.domain
|
|
|
+ )
|
|
|
) {
|
|
|
// console.log(UA.getBrowser(), chromeUA);
|
|
|
if (
|