This commit is contained in:
taiyong 2017-03-14 18:03:28 +08:00
parent c1e1abd158
commit b235b9ac7b

View File

@ -28,9 +28,11 @@
}, },
methods: { methods: {
onValueChange (event) { onValueChange (event) {
if (this.disabled) { if (this.disabled) {
return; return;
} }
var files = event.target.files; var files = event.target.files;
var file = files[0]; var file = files[0];
if (!file) return; if (!file) return;
@ -55,7 +57,7 @@
} else if (this.resultType == 'text') { } else if (this.resultType == 'text') {
reader.readAsText(file); reader.readAsText(file);
} }
} }
} }
}; };