|
@@ -20,7 +20,7 @@
|
|
<div class="content">
|
|
<div class="content">
|
|
<div style="display:flex;">
|
|
<div style="display:flex;">
|
|
<a
|
|
<a
|
|
- v-if="this.$route.params.domain !== 'cugr.ecs.qmth.com.cn'"
|
|
|
|
|
|
+ v-if="!LOGIN_ID_DOMAINS.includes(this.$route.params.domain)"
|
|
:class="['qm-big-text', 'login-type', loginType === 'STUDENT_CODE' && 'active-type']"
|
|
:class="['qm-big-text', 'login-type', loginType === 'STUDENT_CODE' && 'active-type']"
|
|
@click="loginType='STUDENT_CODE'"
|
|
@click="loginType='STUDENT_CODE'"
|
|
style="border-top-left-radius: 6px"
|
|
style="border-top-left-radius: 6px"
|
|
@@ -115,6 +115,8 @@ import { mapMutations } from "vuex";
|
|
* 2. this.$router.push("/login"+domain);
|
|
* 2. this.$router.push("/login"+domain);
|
|
* 因为在/login里会删除localStorage的token,而在router.beforeEach会检查是否有token,达到退出的目的。
|
|
* 因为在/login里会删除localStorage的token,而在router.beforeEach会检查是否有token,达到退出的目的。
|
|
*/
|
|
*/
|
|
|
|
+
|
|
|
|
+const LOGIN_ID_DOMAINS = ["cugr.ecs.qmth.com.cn", "cugbr.ecs.qmth.com.cn"];
|
|
export default {
|
|
export default {
|
|
name: "Login",
|
|
name: "Login",
|
|
data() {
|
|
data() {
|
|
@@ -146,7 +148,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
- if (this.schoolDomain === "cugr.ecs.qmth.com.cn") {
|
|
|
|
|
|
+ if (LOGIN_ID_DOMAINS.includes(this.schoolDomain)) {
|
|
this.loginType = "STUDENT_IDENTITY_NUMBER";
|
|
this.loginType = "STUDENT_IDENTITY_NUMBER";
|
|
}
|
|
}
|
|
this.$Message.config({
|
|
this.$Message.config({
|