Commit 769453ca by xinla

--no commit message

1 parent 5ae8b504
......@@ -103,9 +103,13 @@ export default {
this.$message.error('图片“高”度超限,请重新选择')
isSize = false
}
window.URL && window.URL.revokeObjectURL(image.src)
resolve()
}
if (window.FileReader) {
if (window.URL) {
url = window.URL.createObjectURL(file)
image.src = url
} else if (window.FileReader) {
let reader = new FileReader()
reader.onload = function(e) {
let data = e.target.result
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!