|
|
@ -86,7 +86,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.options.img = this.picHeader + '/' + localStorage.getItem("headPic") |
|
|
|
this.options.img = this.picHeader + '/' + JSON.parse(localStorage.getItem("userInfo")).avatar |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
reset() { |
|
|
@ -127,7 +127,6 @@ export default { |
|
|
|
if (res.code === 200) { |
|
|
|
this.open = false |
|
|
|
this.options.img = `${this.picHeader}/${res.data}` |
|
|
|
localStorage.setItem('headPic',res.data) |
|
|
|
this.msgSuccess('修改成功') |
|
|
|
} else { |
|
|
|
this.msgError(res.msg) |
|
|
|