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) {
|
async function getAvatar(id: string) {
|
||||||
isLoadAvatar.value = true;
|
isLoadAvatar.value = true;
|
||||||
|
|
||||||
await http
|
await http
|
||||||
|
|
||||||
.get(config.API.orgCheckAvatar(id))
|
.get(config.API.orgCheckAvatar(id))
|
||||||
|
|
@ -113,18 +112,19 @@ async function getAvatar(id: string) {
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
isLoadAvatar.value = false;
|
isLoadAvatar.value = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ดึงข้อมูล เพื่อเก็บรูปโปรไฟล์ */
|
/** ดึงข้อมูล เพื่อเก็บรูปโปรไฟล์ */
|
||||||
async function fetchProfile(id: string, avatarName: string) {
|
async function fetchProfile(id: string, avatarName: string) {
|
||||||
http
|
await http
|
||||||
.get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName))
|
.get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
store.dataEvaluation.avartar = res.data.downloadUrl;
|
store.dataEvaluation.avartar = res.data.downloadUrl;
|
||||||
imgProfile.value = res.data.downloadUrl;
|
imgProfile.value = res.data.downloadUrl;
|
||||||
isLoadAvatar.value = false;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue