Test frontend #only_compile

This commit is contained in:
2023-10-25 23:46:21 -05:00
parent f4013d1196
commit 47329ac04e
6 changed files with 17 additions and 8 deletions

View File

@@ -167,7 +167,7 @@
max-width: 70%;
}
.edit-action{
min-width: 10%;
min-width: 5%;
}
.carousel-container{
height: inherit;

View File

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

View File

@@ -82,6 +82,14 @@ 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){
this.uploadCount++;
this.uploadingDocuments.forEach((document) => {
if(document.key === key) {
document.progress++
}
})
},
pushUploadingDocuments(name: string){
this.uploadCount++;
const document = {