Merge branch 'NiceDev' into develop
This commit is contained in:
commit
af74caf64e
1 changed files with 3 additions and 3 deletions
|
|
@ -101,7 +101,6 @@ async function fetchEvaluation() {
|
|||
|
||||
async function getAvatar(id: string) {
|
||||
isLoadAvatar.value = true;
|
||||
|
||||
await http
|
||||
|
||||
.get(config.API.orgCheckAvatar(id))
|
||||
|
|
@ -113,18 +112,19 @@ async function getAvatar(id: string) {
|
|||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
isLoadAvatar.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
/** ดึงข้อมูล เพื่อเก็บรูปโปรไฟล์ */
|
||||
async function fetchProfile(id: string, avatarName: string) {
|
||||
http
|
||||
await http
|
||||
.get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName))
|
||||
.then(async (res) => {
|
||||
store.dataEvaluation.avartar = res.data.downloadUrl;
|
||||
imgProfile.value = res.data.downloadUrl;
|
||||
isLoadAvatar.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue