Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引用H5对象报错 #210

Closed
fanly opened this issue Oct 25, 2016 · 2 comments
Closed

引用H5对象报错 #210

fanly opened this issue Oct 25, 2016 · 2 comments

Comments

@fanly
Copy link

fanly commented Oct 25, 2016

ready: function () {
var file = new FileReader()
file.readAsDataURL(this.files[0].file)
}

error no-undef 'FileReader' is not defined

@zigomir
Copy link
Contributor

zigomir commented Oct 30, 2016

I really can't see how this is vue-cli related.

Otherwise, if you're using FileReader see browser compatibility table here: https://developer.mozilla.org/en-US/docs/Web/API/FileReader

@zigomir zigomir closed this as completed Oct 30, 2016
@egoist
Copy link
Collaborator

egoist commented Oct 30, 2016

I guess it's just an eslint error 😓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants