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

@ -54,8 +54,8 @@ async function downloadDocument(type: string) {
);
}
})
.catch((e) => {
messageError($q, e);
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {
hideLoader();

View file

@ -126,8 +126,8 @@ const downloadReport = async (
showDocument(url);
}
})
.catch((e) => {
messageError($q, e);
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {
hideLoader();

View file

@ -128,8 +128,8 @@ const downloadReport = async (
showDocument(url);
}
})
.catch((e) => {
messageError($q, e);
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
})
.finally(() => {
hideLoader();
@ -186,7 +186,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
@filter="(inputValue:any,doneFn:Function) =>
filterSelector(inputValue, doneFn,'selectList') "
>
<template v-slot:no-option>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
ไมอม