fix(base64-converter): async onUpload callback

This commit is contained in:
Corentin Thomasset 2022-04-24 22:33:15 +02:00
parent b64839cb73
commit 84cf1bb964
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -40,7 +40,7 @@ const fileInput = ref() as Ref<File>;
const { base64: fileBase64 } = useBase64(fileInput); const { base64: fileBase64 } = useBase64(fileInput);
const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: 'Base64 string copied to the clipboard' }); const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: 'Base64 string copied to the clipboard' });
function onUpload({ file: { file } }: { file: UploadFileInfo }) { async function onUpload({ file: { file } }: { file: UploadFileInfo }) {
if (file) { if (file) {
fileList.value = []; fileList.value = [];
fileInput.value = file; fileInput.value = file;