Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

如何让element-ui 的el-upload组件能够上传文件夹?

能不能通过加入webkitdirectory把文件夹里的文件读取出来,如果可以的话,怎么加?在index.js文件里改还是怎么做?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

文件夹属于chrome支持吧。别的浏览器也不支持。

你可以获取一下dom,然后给他赋值。比如说nextTick的回调里面。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...