fix PDF = undefined

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-21 09:30:54 +07:00
parent 4d4a95c2b9
commit 4f0eecfffe
15 changed files with 24 additions and 2 deletions

View file

@ -79,7 +79,7 @@ async function getReport(list: string) {
)?.val;
const newReport = listFind === "report2" ? "report2-history" : listFind;
pdfSrc.value = undefined;
numOfPages.value = 1;
page.value = 1;
isLoadPDF.value = true;
if (newReport) {
await http

View file

@ -86,6 +86,7 @@ async function getReport() {
) {
loadingBtn.value = true;
pdfSrc.value = undefined;
page.value = 1;
await http
.get(
config.API.developmentReport() +

View file

@ -71,6 +71,8 @@ async function fetchReport() {
* @param data อมลบญชนลา
*/
async function fetchDocumentTemplate(data: any) {
pdfSrc.value = undefined;
page.value = 1;
await axios
.post(`${config.API.reportTemplate}/xlsx`, data, {
headers: {