修复移动端下载问题

This commit is contained in:
ciaochaos 2020-05-15 12:45:38 +08:00
parent 121f077ee1
commit 7d2b8bea8c
1 changed files with 1 additions and 3 deletions

View File

@ -36,9 +36,7 @@ const PartDownload = ({ value, onSvgDownload, onJpgDownload }) => {
</div>
<div>
{
imgData.length > 0 ? <div id="dl-image" onClick={() => {
onJpgDownload().then(res => setImgData(res));
}}><div id="dl-image-inner"><img id="dl-image-inner-jpg" src={imgData} alt="点击JPG下载" /></div></div> : null
imgData.length > 0 ? <div id="dl-image"><div id="dl-image-inner"><img id="dl-image-inner-jpg" src={imgData} alt="点击JPG下载" /></div></div> : null
}
</div>
</div>