xbx #146

Merged
theluyuan merged 13 commits from xbx into master 2020-11-23 08:59:54 +00:00
Showing only changes of commit 8ccc7e7b0d - Show all commits

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)
}