We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 558b5f7 commit bac49afCopy full SHA for bac49af
1 file changed
src/components/layout/User.vue
@@ -282,7 +282,7 @@ export default {
282
method: 'put',
283
url: '/cms/user/avatar',
284
data: {
285
- avatar: res[0].url,
+ avatar: res[0].path,
286
},
287
}).then((res) => { // eslint-disable-line
288
if (res.error_code === 0) {
@@ -292,7 +292,6 @@ export default {
292
})
293
this.cropVisible = false
294
// 触发重新获取用户信息
295
- // this.$store.dispatch()
296
return User.getInformation()
297
}
298
return Promise.reject(new Error('更新头像失败'))
0 commit comments