@vunk/form 1.1.50 → 1.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -266,10 +266,16 @@ const _sfc_main = defineComponent({
|
|
|
266
266
|
fileStatus.value = Status.uploading;
|
|
267
267
|
const chunkFiles = createFileChunk(container.file, props2.size);
|
|
268
268
|
const hash = await calculateFileHashSample(container.file);
|
|
269
|
+
const isSameFile = container.hash === hash;
|
|
270
|
+
let uploadedList = [];
|
|
269
271
|
container.hash = hash;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
272
|
+
if (isSameFile) {
|
|
273
|
+
uploadedList = chunks.value.filter((v) => v.status === Status.done).map((v) => v.hash);
|
|
274
|
+
} else {
|
|
275
|
+
uploadedList = await verify({
|
|
276
|
+
identifier: hash
|
|
277
|
+
});
|
|
278
|
+
}
|
|
273
279
|
const sliceSize = chunkFiles[0].size;
|
|
274
280
|
chunks.value = chunkFiles.map((chunk, index) => {
|
|
275
281
|
const _container = container;
|