修改图片链接地址

This commit is contained in:
dong.ai
2024-10-30 15:54:18 +08:00
parent df6bde6661
commit f96c45c08d

View File

@@ -75,6 +75,7 @@ export default {
},
// 生成图片并下载
domToImage(domElement, quality, callback) {
console.log(location);
html2canvas(domElement, {
width: domElement.offsetWidth,
height: domElement.offsetHeight,
@@ -100,7 +101,7 @@ export default {
if (res.result == '0') {
EWebBridge.webCallAppInJs('download', {
name: '业绩贺报.png',
url: location.origin + res.path
url: res.path
})
.then(() => {
console.log('下载完成')