mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 08:36:44 +08:00
修改图片链接地址
This commit is contained in:
@@ -75,6 +75,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 生成图片并下载
|
// 生成图片并下载
|
||||||
domToImage(domElement, quality, callback) {
|
domToImage(domElement, quality, callback) {
|
||||||
|
console.log(location);
|
||||||
html2canvas(domElement, {
|
html2canvas(domElement, {
|
||||||
width: domElement.offsetWidth,
|
width: domElement.offsetWidth,
|
||||||
height: domElement.offsetHeight,
|
height: domElement.offsetHeight,
|
||||||
@@ -100,7 +101,7 @@ export default {
|
|||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
EWebBridge.webCallAppInJs('download', {
|
EWebBridge.webCallAppInJs('download', {
|
||||||
name: '业绩贺报.png',
|
name: '业绩贺报.png',
|
||||||
url: location.origin + res.path
|
url: res.path
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log('下载完成')
|
console.log('下载完成')
|
||||||
|
|||||||
Reference in New Issue
Block a user