自主修改邮箱
This commit is contained in:
@@ -859,8 +859,8 @@
|
||||
<el-form-item label="Account :" prop="account">
|
||||
<span>{{ coreForm.account }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Email :">
|
||||
<span>{{ coreForm.email }}</span>
|
||||
<el-form-item label="Email :" prop="email">
|
||||
<el-input type="text" placeholder="Please enter email..." v-model="coreForm.email" style="width: 320px" clearable />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="Real name :" prop="realname">
|
||||
@@ -1610,6 +1610,14 @@ this.applyCvitaTable = data;
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.coreTable = res.data.baseInfo;
|
||||
try {
|
||||
if (this.coreTable && this.coreTable.email != null && this.coreTable.email !== undefined) {
|
||||
localStorage.setItem('U_email', String(this.coreTable.email));
|
||||
}
|
||||
if (this.coreTable && this.coreTable.realname != null && this.coreTable.realname !== undefined) {
|
||||
localStorage.setItem('U_relname', String(this.coreTable.realname));
|
||||
}
|
||||
} catch (e) {}
|
||||
this.majorsList=res.data.baseInfo.majors;
|
||||
this.cvitaForm.user_id = res.data.baseInfo.user_id;
|
||||
this.reviewForm.user_id = res.data.baseInfo.user_id;
|
||||
@@ -1901,6 +1909,14 @@ this.applyCvitaTable = data;
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('Personal information modified successfully!');
|
||||
try {
|
||||
if (this.coreForm.email != null && this.coreForm.email !== undefined) {
|
||||
localStorage.setItem('U_email', String(this.coreForm.email));
|
||||
}
|
||||
if (this.coreForm.realname != null && this.coreForm.realname !== undefined) {
|
||||
localStorage.setItem('U_relname', String(this.coreForm.realname));
|
||||
}
|
||||
} catch (e) {}
|
||||
this.coreVisible = false;
|
||||
this.tipVisible = false;
|
||||
this.getPersonData();
|
||||
|
||||
Reference in New Issue
Block a user