element Submit cannot be triggered twice after upload manually

pxyaymoc  于 2022-11-13  发布在  其他
关注(0)|答案(6)|浏览(177)

Element UI version

2.10.0

OS/Browsers version

chrome 79.0.3945.117

Vue version

2.5.17

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

upload 手动上传之后无法二次触发submit

What is Expected?

希望可以直接再次提交

What is actually happening?

upload 手动上传之后, 接口返回失败,此时再次点击上传无法二次触发submit。除非手动移除文件再上传

ztigrdn8

ztigrdn81#

Translation of this issue:

Element UI version

2.10.0

OS/Browsers version

chrome 79.0.3945.117

Vue version

2.5.17

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

Submit cannot be triggered twice after upload manually

What is Expected?

Hope to submit again directly

What is actually happening?

After uploading manually, the interface fails to return. At this time, clicking upload again cannot trigger submit twice. Unless the file is manually removed and then uploaded

kyvafyod

kyvafyod6#

for those who run into this, this can be hacked by setting the following properties on the file:

file.status = "ready"
  file.percentage = 0

相关问题