|
|
@@ -61,11 +61,6 @@ import { debounce } from '@/utils'
|
|
61
|
61
|
|
|
62
|
62
|
export default {
|
|
63
|
63
|
components: { VueCropper },
|
|
64
|
|
- props: {
|
|
65
|
|
- user: {
|
|
66
|
|
- type: Object
|
|
67
|
|
- }
|
|
68
|
|
- },
|
|
69
|
64
|
data() {
|
|
70
|
65
|
return {
|
|
71
|
66
|
// 是否显示弹出层
|
|
|
@@ -140,7 +135,7 @@ export default {
|
|
140
|
135
|
formData.append("avatarfile", data);
|
|
141
|
136
|
uploadAvatar(formData).then(response => {
|
|
142
|
137
|
this.open = false;
|
|
143
|
|
- this.options.img = response.imgUrl;
|
|
|
138
|
+ this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
|
144
|
139
|
store.commit('SET_AVATAR', this.options.img);
|
|
145
|
140
|
this.$modal.msgSuccess("修改成功");
|
|
146
|
141
|
this.visible = false;
|