mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 23:36:15 -04:00
fix(base64-converter): async onUpload callback
This commit is contained in:
parent
b64839cb73
commit
84cf1bb964
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ const fileInput = ref() as Ref<File>;
|
|||
const { base64: fileBase64 } = useBase64(fileInput);
|
||||
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) {
|
||||
fileList.value = [];
|
||||
fileInput.value = file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue