Test frontend #only_compile
This commit is contained in:
parent
47329ac04e
commit
7baf8b3f9b
|
@ -70,7 +70,7 @@ async function uploadFileChangeHandler(event: Event) {
|
||||||
const start = i * chunkSize
|
const start = i * chunkSize
|
||||||
const end = Math.min(file.size, start + 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)
|
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.document = this.document.filter(e => document.key !== e.key)
|
||||||
this.selectedDocuments = this.selectedDocuments.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.uploadCount++;
|
||||||
this.uploadingDocuments.forEach((document) => {
|
this.uploadingDocuments.forEach((document) => {
|
||||||
if(document.key === key) {
|
if(document.key === key) {
|
||||||
document.progress++
|
document.progress = progress
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,8 +5,8 @@
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>Vite Vasanko</title>
|
<title>Vite Vasanko</title>
|
||||||
<script type="module" crossorigin src="/assets/index-ba5ef1f0.js"></script>
|
<script type="module" crossorigin src="/assets/index-ff8e56e8.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-280e5cf9.css">
|
<link rel="stylesheet" href="/assets/index-23529f96.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user