Test frontend #only_compile

This commit is contained in:
2023-10-25 23:55:50 -05:00
parent 47329ac04e
commit 7baf8b3f9b
5 changed files with 8 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ async function uploadFileChangeHandler(event: Event) {
const start = i * chunkSize
const end = Math.min(file.size, start + chunkSize)
const res = await sendChunk(file, start, end)
documentStore.updateUploadingDocuments(document.key)
documentStore.updateUploadingDocuments( document.key, (100*i) / numChunks)
}
}
}

View File

@@ -82,11 +82,11 @@ export const useDocumentStore = defineStore({
this.document = this.document.filter(e => document.key !== e.key)
this.selectedDocuments = this.selectedDocuments.filter(e => document.key !== e.key)
},
updateUploadingDocuments(key: number){
updateUploadingDocuments(key: number, progress: number){
this.uploadCount++;
this.uploadingDocuments.forEach((document) => {
if(document.key === key) {
document.progress++
document.progress = progress
}
})
},