1
export function downloadShopQRCodeFile(data) {
return request({
url: '/refreshcache/downloadShopQRCodeFile',
method: 'post',
data: data,
responseType: 'blob',
})
}
downloadShopQRCodeFile({
shopQrcodeUrl: data.shopQrcodeUrl
}).then(res => {
const blob = new Blob([res], {type: "application/zip"})
const objectUrl = URL.createObjectURL(blob)
const a = document.createElement('a')
a.href= objectUrl
a.download = `${data.shopName}.zip`
a.click()
})
1