From da45aed2d8f2f28d32ad2b8da7d6843fa05ee37f Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Fri, 16 Sep 2022 15:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20=E6=9B=B4=E6=96=B0=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=90=8E=E4=BF=9D=E5=AD=98=E4=BF=A1=E6=81=AF=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=9B=B4=E6=9B=BF=E5=8E=9F=E6=9D=A5=E5=A4=B4=E5=83=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/profile/userInfo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/profile/userInfo.vue b/src/views/system/user/profile/userInfo.vue index 3627a286..e6ead913 100644 --- a/src/views/system/user/profile/userInfo.vue +++ b/src/views/system/user/profile/userInfo.vue @@ -2,7 +2,7 @@ - + @@ -61,7 +61,7 @@ export default { submit() { this.$refs["form"].validate(valid => { if (valid) { - updateUserProfile(this.user).then(response => { + updateUserProfile(Object.assign(this.user, { avatar: undefined })).then(response => { this.msgSuccess("修改成功"); }); }