diff --git a/src/views/ebiz/billingDetail/billingDetail.vue b/src/views/ebiz/billingDetail/billingDetail.vue index 1ca37d31c..de3346bd4 100644 --- a/src/views/ebiz/billingDetail/billingDetail.vue +++ b/src/views/ebiz/billingDetail/billingDetail.vue @@ -255,11 +255,12 @@ @cancel="cancelChange" /> -
+ -
+ -
+
@@ -182,9 +182,9 @@ export default { console.log(2222); // 使用 html2canvas 捕获图像,并等待其完成 - const canvas = await html2canvas(this.$refs.generateImg, { - width: this.$refs.generateImg.offsetWidth, - height: this.$refs.generateImg.offsetHeight, + const canvas = await html2canvas(domElement, { + width: domElement.offsetWidth, + height: domElement.offsetHeight, backgroundColor: '#fff', scale: 1, dpi: 300 @@ -255,6 +255,14 @@ export default {