头像自动更新

This commit is contained in:
2020-11-12 09:19:44 +08:00
parent 26b815e046
commit d9e0899264
4 changed files with 25 additions and 3 deletions

View File

@@ -1049,3 +1049,13 @@ export async function getset() {
const res = await get('getset');
return res.data;
}
export async function setheadimg(src: string){
const res = await put(`member/${store.state.userinfo.memberid}`,{img: src});
console.log(res)
}
export async function setusername(src: string){
const res = await put(`member/${store.state.userinfo.memberid}`,{name: src});
console.log(res)
}