ソースを参照

fix user avatar

scorpio 2 年 前
コミット
3c218386f9
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/views/dash/compoents/profile.vue

+ 3 - 0
src/views/dash/compoents/profile.vue

@@ -252,6 +252,9 @@ export default {
       this.$api.dash.updateAvatar(data).then(res => {
         if (res.code === 200) {
           this.$message.success(res.msg)
+          this.user.info.avatarUrl = avatar
+          this.user.setUserInfo(this.user.info)
+          this.show = false
         } else {
           this.$message.error(res.msg)
         }