|
@@ -44,29 +44,24 @@ export default {
|
|
|
course: Object
|
|
|
},
|
|
|
async created() {
|
|
|
- const res = await this.$http.get("/api/ecs_core/student/getStudentInfo", {
|
|
|
- params: {
|
|
|
- identityNumber: this.$store.state.user.identityNumber,
|
|
|
- orgId: this.$store.state.user.rootOrgId
|
|
|
- }
|
|
|
- });
|
|
|
+ const res = await this.$http.get(
|
|
|
+ "/api/ecs_core/student/getStudentInfoBySession"
|
|
|
+ );
|
|
|
this.userPhoto = res.data.photoPath;
|
|
|
// FIXME: 以后api返回的是绝对路径
|
|
|
if (this.userPhoto.startsWith("http") === false) {
|
|
|
- this.userPhoto =
|
|
|
- "https://ecs-test-static.qmth.com.cn/student_base_photo/" +
|
|
|
- this.userPhoto;
|
|
|
+ this.userPhoto = this.userPhoto;
|
|
|
}
|
|
|
|
|
|
- const sysRes = await this.$http.get("/api/sys_param", {
|
|
|
- params: {
|
|
|
- orgId: this.$store.state.user.rootOrgId
|
|
|
- }
|
|
|
- });
|
|
|
+ // const sysRes = await this.$http.get("/api/sys_param", {
|
|
|
+ // params: {
|
|
|
+ // orgId: this.$store.state.user.rootOrgId
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
- // FIXME: 将faceEnable和faceCheck放到global的state中
|
|
|
- this.faceEnable = sysRes.data.faceEnable; // 模拟练习?
|
|
|
- this.faceCheck = sysRes.data.faceCheck; // 考试
|
|
|
+ // // FIXME: 将faceEnable和faceCheck放到global的state中
|
|
|
+ // this.faceEnable = sysRes.data.faceEnable; // 模拟练习?
|
|
|
+ // this.faceCheck = sysRes.data.faceCheck; // 考试
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(["faceCheckModalOpen"])
|