|
@@ -17,7 +17,7 @@
|
|
|
<div class="content">
|
|
|
<div style="display:flex;">
|
|
|
<a
|
|
|
- v-if="!LOGIN_ID_DOMAINS.includes(this.$route.params.domain)"
|
|
|
+ v-if="!LOGIN_ID_DOMAINS.includes(domainInUrl)"
|
|
|
:class="[
|
|
|
'qm-big-text',
|
|
|
'login-type',
|
|
@@ -116,6 +116,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
LOGIN_ID_DOMAINS: ["cugr.ecs.qmth.com.cn", "cugbr.ecs.qmth.com.cn"],
|
|
|
+ domainInUrl: this.$route.params.domain,
|
|
|
productName: "",
|
|
|
loginType: "STUDENT_CODE",
|
|
|
errorInfo: "",
|
|
@@ -298,7 +299,10 @@ export default {
|
|
|
const student = (await this.$http.get(
|
|
|
"/api/ecs_core/student/getStudentInfoBySession"
|
|
|
)).data;
|
|
|
- const user = { ...data, ...student };
|
|
|
+ const specialty = (await this.$http.get(
|
|
|
+ "/api/ecs_exam_work/exam_student/specialtyNameList/"
|
|
|
+ )).data;
|
|
|
+ const user = { ...data, ...student, specialty: specialty.join() };
|
|
|
this.updateUser(user);
|
|
|
window.localStorage.setItem("user-for-reload", JSON.stringify(user));
|
|
|
|
|
@@ -410,10 +414,11 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
logoPath() {
|
|
|
- return "/api/ecs_core/org/logo?domain=" + this.$route.params.domain;
|
|
|
+ return "/api/ecs_core/org/logo?domain=" + this.domainInUrl;
|
|
|
},
|
|
|
schoolDomain() {
|
|
|
- const domain = this.$route.params.domain;
|
|
|
+ const domain = this.domainInUrl;
|
|
|
+ console.log("schoolDomain", domain, this.$route);
|
|
|
if (!domain || !domain.includes("qmth.com.cn")) {
|
|
|
this.$Message.error("机构地址出错,请关闭程序后再登录。");
|
|
|
}
|