@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
- const uploadedList = await verify({
271
- identifier: hash
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {