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
1b95877e45
commit
fbb362d544
2 changed files with 16 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { Base64 } from 'js-base64';
|
||||
import heicConvert from 'heic-convert/browser';
|
||||
import { useDownloadFileFromBase64Refs } from '@/composable/downloadBase64';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
|
||||
const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle');
|
||||
const file = ref<File | null>(null);
|
||||
|
@ -13,7 +13,7 @@ const formats = [
|
|||
{ value: 'jpg', label: 'JPEG' },
|
||||
{ value: 'png', label: 'PNG' },
|
||||
];
|
||||
const { download } = useDownloadFileFromBase64Refs(
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
{
|
||||
source: base64OutputImage,
|
||||
filename: fileName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue