无操作触发上传事件

166 阅读1分钟

既然遇见了 ,那就记录一下

只需要给上传组件添加一个ref属性,然后就可以通过下面的事件触发上传事件

this.$refs['upload'].$refs['upload-inner'].handleClick()