ask the great gods, how to use element+Vue to achieve pictures into base64 upload, preview. Baidu"s method is a little miscellaneous, not very good.
ask the great gods, how to use element+Vue to achieve pictures into base64 upload, preview. Baidu"s method is a little miscellaneous, not very good.
has written a simple one that you can refer to https://jsfiddle.net/4y2w57tc/
FileReader
after getting the file object, which is previously written to compress the source file with canvas. For export to base64, please refer to
https://codeshelper.com/n/13...