提交代码

master
e 3 years ago
parent d89b7fbee2
commit ec092a5b79
  1. 2
      src/components/page/Login.vue
  2. 4
      src/components/page/Record.vue
  3. 4
      src/config/index.js

@ -295,6 +295,8 @@ export default {
}
this.$get(this.api.logins,data).then(res => {
this.$post(this.api.updateLogInNumber,{userId: this.userId}).then(res => {}).catch(res => {});
sessionStorage.setItem('userName', res.message.user.account);
this.$message.success('登录成功');
sessionStorage.setItem('sta_client_username', this.activeName == '0' ? this.loginForm.username : this.phoneParam.userphone);
this.$store.commit("userLoginData", { userId : this.userId,accountRole: this.roleId,studentId : this.studentId,schoolId: this.schoolId,token: res.message.user.token });

@ -6,7 +6,7 @@
<div class="newPractice-card">
<div class="newPractice-card-other">
<p style="font-size:18px">姓名</p>
<p style="font-size:36px">{{overview.userName}}</p>
<p style="font-size:36px">{{userName}}</p>
</div>
<div class="newPractice-card-other">
@ -46,9 +46,11 @@ export default {
courseId: this.$store.state.courseId,
userId: this.$store.state.userId,
overview: {},
userName:'',
};
},
mounted() {
this.userName = sessionStorage.getItem('userName')
this.getData();
},
methods: {

@ -1,5 +1,5 @@
const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isCH = location.host.includes('120.78.127.12') //是否是巢湖版本
const isCH = location.host.includes('124.71.12.62') //是否是巢湖版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('120.78.198.231') //是否是职站测试
const isPro = location.host.includes('occupationlab.com') //是否是职站生产
@ -19,7 +19,7 @@ if(isHh) {
{ id: 8, label: '大数据分析实验教学系统' }
];
} else if(isCH) {
host = "http://120.78.127.12/";
host = "http://124.71.12.62/";
title = "学生端";
schoolId = 1006;
systemList = [

Loading…
Cancel
Save