npm install html2canvas
import html2canvas from "html2canvas"
export const handleHtml2Img = async (el, options = {}) => { let canvas = await new html2canvas(el, options); let imgUrl = canvas.toDataURL(); return imgUrl }
京公网安备 11010502049817号