Commit be6982be by 陈玉桐

test

parent 57aa9f73
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
if (res.localData.substr(0, 5) != 'data:') { if (res.localData.substr(0, 5) != 'data:') {
// me.uploadPic = 'data:image;base64,' + res.localData // me.uploadPic = 'data:image;base64,' + res.localData
me.option.img = 'data:image;base64,' + res.localData me.option.img = 'data:image/jpeg;base64,' + res.localData
me.cropperShow = true me.cropperShow = true
}else{ }else{
// me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示 // me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示
...@@ -484,7 +484,6 @@ export default { ...@@ -484,7 +484,6 @@ export default {
me.option.img = res.localData me.option.img = res.localData
me.cropperShow = true me.cropperShow = true
} }
console.log(me.option.img)
} }
}) })
// } // }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment