@vunk/form 1.1.51 → 1.1.53
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,16 +266,11 @@ 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
269
|
let uploadedList = [];
|
|
271
270
|
container.hash = hash;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
uploadedList = await verify({
|
|
276
|
-
identifier: hash
|
|
277
|
-
});
|
|
278
|
-
}
|
|
271
|
+
uploadedList = await verify({
|
|
272
|
+
identifier: hash
|
|
273
|
+
});
|
|
279
274
|
const sliceSize = chunkFiles[0].size;
|
|
280
275
|
chunks.value = chunkFiles.map((chunk, index) => {
|
|
281
276
|
const _container = container;
|
|
@@ -487,13 +482,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
487
482
|
}, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
|
|
488
483
|
key: 1,
|
|
489
484
|
type: "primary",
|
|
485
|
+
disabled: !_ctx.container.file,
|
|
490
486
|
onClick: _ctx.handleUpload
|
|
491
487
|
}, {
|
|
492
488
|
default: withCtx(() => [
|
|
493
489
|
createTextVNode("\u4E0A\u4F20")
|
|
494
490
|
]),
|
|
495
491
|
_: 1
|
|
496
|
-
}, 8, ["onClick"]))
|
|
492
|
+
}, 8, ["disabled", "onClick"]))
|
|
497
493
|
]),
|
|
498
494
|
_: 1
|
|
499
495
|
})
|