แก้โหลดไฟล์ เป็น id

This commit is contained in:
STW_TTTY\stwtt 2024-08-13 10:25:45 +07:00
parent dd5c3a42f6
commit 232b5cf60d
5 changed files with 58 additions and 28 deletions

View file

@ -11,7 +11,7 @@ import { useCounterMixin } from "@/stores/mixin";
const $q = useQuasar();
const mixin = useCounterMixin();
const { showLoader, hideLoader, success, messageError, dialogRemove } = mixin;
const { showLoader, hideLoader, success, messageError, dialogRemove ,downloadRenameFileByLink} = mixin;
const fileRef = ref<Object | null>(null);
const file = ref<any>();
@ -186,7 +186,7 @@ function downloadFile(link: string) {
round
color="blue"
icon="mdi-download-outline"
@click="downloadFile(f.pathName)"
@click="downloadRenameFileByLink(f.pathName,f.fileName)"
>
<q-tooltip>ดาวนโหลดเอกสาร</q-tooltip>
</q-btn>