@@ -38,7 +38,7 @@
/* 转base64 */
export const svgToBase64 = (svg) => {
- const base64img = `data:image/svgxmbase64,${window.btoa(
+ const base64img = `data:image/svg+xml;base64,${window.btoa(
unescape(encodeURI(svg))
)}`;
return base64img;