Merge branch 'hostfix/uploader' into 'master'

Hostfix/uploader



See merge request !19
This commit is contained in:
taiyong
2017-03-31 15:25:08 +08:00
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -18,6 +18,7 @@
default: false
},
beforeRead: Function,
afterRead: Function,
resultType: {
type: String,
default: 'dataUrl',
@@ -37,7 +38,7 @@
if (this.beforeRead && !this.beforeRead(file)) return;
var reader = new FileReader();
reader.onload = (e) => {
this.$emit('file-readed',
this.afterRead && this.afterRead(
{
name: file.name,
type: file.type,