Karsa 11 months ago
parent
commit
f549ccb2db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/svgToblob.js

+ 1 - 1
src/utils/svgToblob.js

@@ -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;