This commit is contained in:
Warunee Tamkoo 2024-06-28 23:47:18 +07:00
parent ec41b55f64
commit c622df5b58
3 changed files with 19 additions and 11 deletions

View file

@ -838,7 +838,6 @@ async function saveData(id: string) {
*/
async function DataSave(id: string) {
const data = putData(id);
console.log("data==>", data);
await http
.post(config.API.saveFinish(id), data)
.then(() => {

View file

@ -245,16 +245,22 @@ function updatemodalPersonal(modal: boolean) {
async function fetchProfilePhoto() {
await http
.get(
config.API.fileByFile(
"ทะเบียนประวัติ",
"โปรไฟล์",
personalId.value,
`profile-${personalId.value}`
)
)
.get(config.API.orgCheckAvatar(personalId.value))
.then(async (res) => {
avatarProfile.value = res.data.downloadUrl;
if (res.data.result.avatarName) {
await http
.get(
config.API.fileByFile(
"ทะเบียนประวัติ",
"โปรไฟล์",
personalId.value,
res.data.result.avatarName
)
)
.then(async (res) => {
avatarProfile.value = res.data.downloadUrl;
});
}
});
}