mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-06-07 06:18:59 +00:00
修复头像上传成功图片不显示问题
This commit is contained in:
parent
85ab6236e7
commit
210626b21f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user