avatar
This commit is contained in:
parent
803477c451
commit
6b07c9694c
1 changed files with 8 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ async function getData(){
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ฟังชั่น ดึงรูปภาพโปรไฟล์
|
||||||
|
* @param id id ของบุคคล
|
||||||
|
*/
|
||||||
function getAvatar(id:string){
|
function getAvatar(id:string){
|
||||||
if(id){
|
if(id){
|
||||||
http
|
http
|
||||||
|
|
@ -110,6 +114,10 @@ function getAvatar(id:string){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
const dataList = res.data.result
|
const dataList = res.data.result
|
||||||
data.avatar = dataList.avatar
|
data.avatar = dataList.avatar
|
||||||
|
}).catch((e)=>{
|
||||||
|
|
||||||
|
}).finally(()=>{
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue