await
This commit is contained in:
parent
93acecce70
commit
49ab44622b
1 changed files with 3 additions and 5 deletions
|
|
@ -326,14 +326,12 @@ async function uploadProfile(id: string) {
|
|||
)
|
||||
.then(async (res) => {
|
||||
uploadUrl.value = res.data["เอกสารหลักฐาน"].uploadUrl;
|
||||
uploadFileURL(uploadUrl.value, fileUpload.value);
|
||||
await uploadFileURL(uploadUrl.value, fileUpload.value);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
async function uploadFileURL(uploadUrl: string, file: any) {
|
||||
|
|
@ -408,7 +406,7 @@ async function addData() {
|
|||
})
|
||||
.then(async (res) => {
|
||||
subId.value = await res.data.result;
|
||||
uploadProfile(res.data.result);
|
||||
await uploadProfile(res.data.result);
|
||||
|
||||
fetchData(profileId.value);
|
||||
props?.fetchDataPersonal?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue