|
@@ -138,6 +138,26 @@ export default {
|
|
disableLoginBtn: true
|
|
disableLoginBtn: true
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ (async () => {
|
|
|
|
+ let myHeaders = new Headers();
|
|
|
|
+ myHeaders.append("Content-Type", "application/javascript");
|
|
|
|
+ const response = await fetch(
|
|
|
|
+ document.scripts[document.scripts.length - 1].src,
|
|
|
|
+ {
|
|
|
|
+ headers: myHeaders
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ if (!response.ok) {
|
|
|
|
+ window._hmt.push([
|
|
|
|
+ "_trackEvent",
|
|
|
|
+ "登录页面",
|
|
|
|
+ "新版本发布后,客户端自动刷新"
|
|
|
|
+ ]);
|
|
|
|
+ location.reload(true);
|
|
|
|
+ }
|
|
|
|
+ })();
|
|
|
|
+ },
|
|
async created() {
|
|
async created() {
|
|
if (this.LOGIN_ID_DOMAINS.includes(this.schoolDomain)) {
|
|
if (this.LOGIN_ID_DOMAINS.includes(this.schoolDomain)) {
|
|
this.loginType = "STUDENT_IDENTITY_NUMBER";
|
|
this.loginType = "STUDENT_IDENTITY_NUMBER";
|