Browse Source

头像处理

aleyds 11 months ago
parent
commit
22a12f15a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/system/user/profile/userAvatar.vue

+ 1 - 1
src/views/system/user/profile/userAvatar.vue

@@ -137,7 +137,7 @@ export default {
         formData.append("avatarfile", data, this.options.filename);
         uploadAvatar(formData).then(response => {
           this.open = false;
-          this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
+          this.options.img =  response.imgUrl;
           store.commit('SET_AVATAR', this.options.img);
           this.$modal.msgSuccess("修改成功");
           this.visible = false;