Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m40s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m40s
This commit is contained in:
commit
a9fd6c2189
1 changed files with 3 additions and 3 deletions
|
|
@ -177,7 +177,7 @@ async function fetchKeycloakPosition() {
|
|||
privacyStore.setAccepted(data.privacyCheckin)
|
||||
//เช็คว่ามีรูปไหม ถ้ามีรูปเรียกข้อมูลรูป
|
||||
if (data.avatarName) {
|
||||
await getImg(data.profileId, data.avatarName)
|
||||
getImg(data.profileId, data.avatarName)
|
||||
} else {
|
||||
profileImg.value = avatar
|
||||
}
|
||||
|
|
@ -188,8 +188,8 @@ async function fetchKeycloakPosition() {
|
|||
}
|
||||
|
||||
const profileImg = ref<string>('')
|
||||
async function getImg(id: string, pathName: string) {
|
||||
await http
|
||||
function getImg(id: string, pathName: string) {
|
||||
http
|
||||
.get(config.API.fileByFile('ทะเบียนประวัติ', 'โปรไฟล์', id, pathName))
|
||||
.then((res) => {
|
||||
profileImg.value = res.data.downloadUrl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue