mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00
fix: update downloadbase64
This commit is contained in:
parent
4c6c102e58
commit
d43ba716cb
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue