Commit e204bba9 authored by renjintao's avatar renjintao

userInfo

parent 5a219d90
......@@ -7,7 +7,7 @@
<Avatar :src="avatorPath" size="150" />
</p>
<p style="text-align:center;padding:10px;">
<Button ghost @click="openModalAvatar">修改头像</Button>
<Button @click="openModalAvatar">修改头像</Button>
</p>
</div>
</Card>
......@@ -231,7 +231,8 @@ export default {
upAvatar() {
if (this.imageModel.avatar_Url != '') {
this.$http.sysUser.changeavatar(this.imageModel).then((res) => {
if (res.data.result) {
alert(JSON.stringify(res))
if (res.success) {
this.$Message.success('修改成功!')
this.modalAvatar = false
this.$store.commit(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment