Test frontend #only_compile
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user