From 8af6a4253cbab888f5f0839d2f20bddf05f74ad1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 10 Feb 2026 17:29:26 +0700 Subject: [PATCH] fix:viewPDF --- src/components/ViewPDF.vue | 181 +++++++++++-------------------------- 1 file changed, 55 insertions(+), 126 deletions(-) diff --git a/src/components/ViewPDF.vue b/src/components/ViewPDF.vue index 26f1b456b..3b4c60000 100644 --- a/src/components/ViewPDF.vue +++ b/src/components/ViewPDF.vue @@ -3,7 +3,6 @@ import { ref, watch, computed, onUnmounted } from "vue"; import { useQuasar } from "quasar"; import { VuePDF, usePDF } from "@tato30/vue-pdf"; import axios from "axios"; -import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; @@ -29,9 +28,6 @@ const currentObjectUrl = ref(null); // Computed properties for navigation const canGoPrevious = computed(() => page.value > 1); const canGoNext = computed(() => page.value < numOfPages.value); -const pageInfo = computed( - () => `หน้าที่ ${page.value} จาก ${numOfPages.value}` -); /** * Navigate to previous page @@ -164,102 +160,57 @@ onUnmounted(() => { transition-show="slide-up" transition-hide="slide-down" > - - - + + - +
+ + + + หน้า {{ page }} / {{ numOfPages || "-" }} + + + +
+ - -
- - - - - {{ pageInfo }} - - - - -
- - -
- -
- - -
- - - - - {{ pageInfo }} - - - - +
+
- - -
-
- -
-
+ +
+
+ {