头像自动更新
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user