fixing response blob

This commit is contained in:
Warunee Tamkoo 2024-06-14 11:06:31 +07:00
parent a27091a81a
commit 74f1540203
25 changed files with 138 additions and 119 deletions

View file

@ -84,8 +84,8 @@ function getPDF(url: string, type: string) {
hideLoader();
}, 1500);
})
.catch((e) => {
messageError($q, e);
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {
store.log = 0;
@ -138,7 +138,9 @@ onMounted(async () => {
active-class="text-primary"
@click="handleItemClick(2)"
>
<q-item-section class="q-py-sm">แบบแสดงรายละเอยดการเสนอผลงาน</q-item-section>
<q-item-section class="q-py-sm"
>แบบแสดงรายละเอยดการเสนอผลงาน</q-item-section
>
</q-item>
<q-item
clickable
@ -147,7 +149,8 @@ onMounted(async () => {
active-class="text-primary"
@click="handleItemClick(3)"
>
<q-item-section class="q-py-sm">แบบตรวจสอบความถกตองครบถวนของขอมลเพอประกอบการคดเลอกบคคล
<q-item-section class="q-py-sm"
>แบบตรวจสอบความถกตองครบถวนของขอมลเพอประกอบการคดเลอกบคคล
(เอกสารแบบ )</q-item-section
>
</q-item>
@ -158,7 +161,9 @@ onMounted(async () => {
active-class="text-primary"
@click="handleItemClick(4)"
>
<q-item-section class="q-py-sm"> แบบประเมนคณลกษณะบคคล </q-item-section>
<q-item-section class="q-py-sm">
แบบประเมนคณลกษณะบคคล
</q-item-section>
</q-item>
<q-item
clickable
@ -178,7 +183,9 @@ onMounted(async () => {
active-class="text-primary"
@click="handleItemClick(6)"
>
<q-item-section class="q-py-sm"> ผลงานทจะสงประเม (เอกสารหมายเลข 11) </q-item-section>
<q-item-section class="q-py-sm">
ผลงานทจะสงประเม (เอกสารหมายเลข 11)
</q-item-section>
</q-item>
</q-list>
</template>

View file

@ -159,7 +159,9 @@ async function getPDF(url: string, type: string, fileName: string) {
a.download = fileName;
a.click();
})
.catch((e) => {})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {});
}

View file

@ -86,8 +86,8 @@ function getPDF(url: string, type: string) {
hideLoader();
}, 1500);
})
.catch((e) => {
messageError($q, e);
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {
store.log = 0;