更改头像提示

This commit is contained in:
luyuan 2020-11-23 10:27:04 +08:00
parent 7bb0713595
commit 8ccc7e7b0d
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -783,6 +783,7 @@ export async function putmember(data: any): Promise<any>{
}
console.log(newdata)
const res = await put<Liveaddrule>(`member/${store.state.userinfo.memberid}`, newdata)
store.dispatch("setUserInfo");
return res;
}
@ -1080,10 +1081,20 @@ export async function getset() {
export async function setheadimg(src: string){
const res = await put(`member/${store.state.userinfo.memberid}`,{img: src});
if(res.code == 0){
message.success(res.msg)
}else{
message.error(res.msg);
}
console.log(res)
}
export async function setusername(src: string){
const res = await put(`member/${store.state.userinfo.memberid}`,{name: src});
if(res.code == 0){
message.success(res.msg)
}else{
message.error(res.msg);
}
console.log(res)
}