Commit bbc59994 authored by maoying's avatar maoying

修改图片路径特殊字符处理

parent ba5c5371
......@@ -46,6 +46,7 @@ export const getBase64 = file => {
export const convertImgUrlToFile = (imgUrl, filename, callBack) => {
let image = new Image();
imgUrl = imgUrl.replace(/\%/g,"%25").replace(/\#/g,"%23").replace(/\&/g,"%26");
image.crossOrigin = '';
image.src = imgUrl;
image.onload = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment