Commit 8ec75f65 authored by renjintao's avatar renjintao

userInfo

parent 55c2cd6d
......@@ -131,6 +131,7 @@ export default {
remark: "",
avatarUrl: ""
},
userInfos:{},
imageModel: {
id: null,
avatar_Url: "",
......@@ -206,6 +207,7 @@ export default {
this.$http.sysUser.getuserinfo(parma).then(res => {
if (res.result) {
this.userInfo = res.result;
this.userInfos=res.result;
this.imageModel.id = this.userInfo.id;
if (
res.result.avatarUrl &&
......@@ -233,8 +235,8 @@ export default {
if (res.success) {
this.$Message.success("修改成功!");
this.modalAvatar = false;
this.userInfo.avatarUrl = fileUrlDown + this.imageModel.avatar_Url;
this.$store.commit("admin/user/setUserAvatar", this.userInfo);
this.userInfos.avatarUrl = fileUrlDown + this.imageModel.avatar_Url;
this.$store.commit("admin/user/setUserAvatar", this.userInfos);
} else {
this.$Message.error("修改失败!");
}
......
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