element 上传组件 upload 

上传成功以后,想重新 调用 submit() 函数,发现是不可以进行多次触发的。

 

直接上解决方法,在上传成功后的钩子函数里添加:

this.fileList[0].status = 'ready'

fileList是文件列表,status是单文件的状态改成ready就能再次上传

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
  • 2021-09-11
相关资源
相似解决方案