mock download bill payment

This commit is contained in:
Kittapath 2023-04-09 23:14:34 +07:00
parent c3688918bf
commit 4bc1d60594
2 changed files with 9 additions and 2 deletions

View file

@ -30,7 +30,7 @@
color="gray"
type="file"
flat
:factory="uploadData"
@factory="uploadData"
ref="uploader"
class="full-width"
text-color="dark"
@ -206,7 +206,7 @@ const deleteData = async (id: string) => {
})
}
const uploadData = async (file: any) => {
const uploadData = async (file: File[]) => {
loader.value = true
const blob = file.slice(0, file[0].size)
const newFile = new File(blob, name.value, {