Commit 821a96b4 authored by maoying's avatar maoying

修改图片路径乱码问题

parent bbc59994
......@@ -46,7 +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");
imgUrl = imgUrl.replace(/\#/g,"%23");
image.crossOrigin = '';
image.src = imgUrl;
image.onload = function() {
......
......@@ -78,7 +78,7 @@ class RiskWarnModal extends Component {
return alarm.map(item =>{
return <p>
<span>{item.fireEquipmentName}</span>
<span style= {{color: '#FF0000'}}>{item.name}-不合格</span>
<span style= {{color: '#FF0000'}}>{item.name}-故障</span>
</p>
});
}
......
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