Open chengzhangHu opened 5 years ago
myable the reason is jsx ,deal with on-success to be an success event. can not work with elemtn onSuccess
目前同事协助,通过查看webpack打包后文件,jsx转换vue,el-upload属性,确实被转换为success事件的监听了。目前解决方案,独立成一个组件,然后引入render()
试试 props={{ onSuccess: () => {} }}
getSingUpload(pitem){ let self = this; let res; console.log("base url....single...",self.baseUrl); res = (
2.render() call getSingUpload() 3.upload file