Commit e204bba9 authored by renjintao's avatar renjintao

userInfo

parent 5a219d90
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<Avatar :src="avatorPath" size="150" /> <Avatar :src="avatorPath" size="150" />
</p> </p>
<p style="text-align:center;padding:10px;"> <p style="text-align:center;padding:10px;">
<Button ghost @click="openModalAvatar">修改头像</Button> <Button @click="openModalAvatar">修改头像</Button>
</p> </p>
</div> </div>
</Card> </Card>
...@@ -231,7 +231,8 @@ export default { ...@@ -231,7 +231,8 @@ export default {
upAvatar() { upAvatar() {
if (this.imageModel.avatar_Url != '') { if (this.imageModel.avatar_Url != '') {
this.$http.sysUser.changeavatar(this.imageModel).then((res) => { this.$http.sysUser.changeavatar(this.imageModel).then((res) => {
if (res.data.result) { alert(JSON.stringify(res))
if (res.success) {
this.$Message.success('修改成功!') this.$Message.success('修改成功!')
this.modalAvatar = false this.modalAvatar = false
this.$store.commit( 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