|
@@ -131,7 +131,9 @@ export default {
|
|
const student = (await this.$http.get(
|
|
const student = (await this.$http.get(
|
|
"/api/ecs_core/student/getStudentInfoBySession"
|
|
"/api/ecs_core/student/getStudentInfoBySession"
|
|
)).data;
|
|
)).data;
|
|
- this.updateUser({ ...data, ...student });
|
|
|
|
|
|
+ const user = { ...data, ...student };
|
|
|
|
+ this.updateUser(user);
|
|
|
|
+ window.localStorage.setItem("user-for-reload", JSON.stringify(user));
|
|
this.$router.push("/online-exam");
|
|
this.$router.push("/online-exam");
|
|
} else {
|
|
} else {
|
|
this.errorInfo = data.desc;
|
|
this.errorInfo = data.desc;
|