Small style adjustment, add meta-enter posting.
This commit is contained in:
parent
34a593aa27
commit
892b826df5
3 changed files with 5 additions and 4 deletions
|
@ -16,7 +16,7 @@ const mediaUpload = {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
uploadFile(file) {
|
||||
uploadFile (file) {
|
||||
const self = this
|
||||
const store = this.$store
|
||||
const formData = new FormData()
|
||||
|
@ -40,8 +40,9 @@ const mediaUpload = {
|
|||
],
|
||||
watch: {
|
||||
'dropFiles': function (fileInfos) {
|
||||
if (!this.uploading)
|
||||
if (!this.uploading) {
|
||||
this.uploadFile(fileInfos[0])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue