|
|
@ -6,8 +6,10 @@ const mediaUpload = {
|
|
|
|
const input = this.$el.querySelector('input')
|
|
|
|
const input = this.$el.querySelector('input')
|
|
|
|
|
|
|
|
|
|
|
|
input.addEventListener('change', ({target}) => {
|
|
|
|
input.addEventListener('change', ({target}) => {
|
|
|
|
const file = target.files[0]
|
|
|
|
for (var i = 0; i < target.files.length; i++) {
|
|
|
|
this.uploadFile(file)
|
|
|
|
let file = target.files[i]
|
|
|
|
|
|
|
|
this.uploadFile(file)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
data () {
|
|
|
|