How vue+element uploads pictures to base64 and previews them.

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
clipboard.png


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...

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31c03-2bda0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31c03-2bda0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?