提交:个人中心 更新头像后保存信息导致更替原来头像问题
This commit is contained in:
parent
d647200020
commit
da45aed2d8
|
@ -61,7 +61,7 @@ export default {
|
||||||
submit() {
|
submit() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
updateUserProfile(this.user).then(response => {
|
updateUserProfile(Object.assign(this.user, { avatar: undefined })).then(response => {
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue