When the front end downloads the base64 format image, an error is reported: Not allowed to navigate top frame to data URL, the code is as follows:
 <a href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAIUlEQVQ4jWMUXfH6PwOVABO1DBo1bNSwUcNGDRs1DAcAAJNsAs1wYr6uAAAAAElFTkSuQmCC">
    <el-button type="primary" size="mini">下载</el-button>
</a>

Click the button to report an error, add download="special QR code" to the a tag, as follows:

 <a :href="receive_qr_url" download="专用二维码">
    <el-button type="primary" size="mini">下载</el-button>
</a>

problem solved.


来了老弟
508 声望31 粉丝

纸上得来终觉浅,绝知此事要躬行