fix: update downloadbase64

This commit is contained in:
ShareVB 2024-07-14 23:03:03 +02:00
parent 4c6c102e58
commit d43ba716cb

View file

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { Base64 } from 'js-base64'; import { Base64 } from 'js-base64';
import createQPDFModule from 'qpdf-wasm-esm-embedded'; import createQPDFModule from 'qpdf-wasm-esm-embedded';
import { useDownloadFileFromBase64Refs } from '@/composable/downloadBase64'; import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle'); const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle');
const file = ref<File | null>(null); const file = ref<File | null>(null);
@ -10,7 +10,7 @@ const base64OutputPDF = ref('');
const logs = ref<string[]>([]); const logs = ref<string[]>([]);
const fileName = ref(''); const fileName = ref('');
const fileExtension = ref('pdf'); const fileExtension = ref('pdf');
const { download } = useDownloadFileFromBase64Refs( const { download } = useDownloadFileFromBase64(
{ {
source: base64OutputPDF, source: base64OutputPDF,
filename: fileName, filename: fileName,