< div class = "div-img" @click = " imgClick () " > 保存图片 </ div >
 
imgClick () {
var alink = document . createElement ( 'a' )
alink . href = this . qrCodeUrl
alink . download = 'pic' // 图片名
alink . click ()
}

转载于:https://my.oschina.net/u/3407708/blog/2966821

Logo

前往低代码交流专区

更多推荐