更改头像提示
This commit is contained in:
parent
7bb0713595
commit
8ccc7e7b0d
@ -783,6 +783,7 @@ export async function putmember(data: any): Promise<any>{
|
|||||||
}
|
}
|
||||||
console.log(newdata)
|
console.log(newdata)
|
||||||
const res = await put<Liveaddrule>(`member/${store.state.userinfo.memberid}`, newdata)
|
const res = await put<Liveaddrule>(`member/${store.state.userinfo.memberid}`, newdata)
|
||||||
|
|
||||||
store.dispatch("setUserInfo");
|
store.dispatch("setUserInfo");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -1080,10 +1081,20 @@ export async function getset() {
|
|||||||
|
|
||||||
export async function setheadimg(src: string){
|
export async function setheadimg(src: string){
|
||||||
const res = await put(`member/${store.state.userinfo.memberid}`,{img: src});
|
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)
|
console.log(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function setusername(src: string){
|
export async function setusername(src: string){
|
||||||
const res = await put(`member/${store.state.userinfo.memberid}`,{name: src});
|
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)
|
console.log(res)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user