Skip to content

Commit

Permalink
添加尺寸
Browse files Browse the repository at this point in the history
  • Loading branch information
isDeje committed Jun 23, 2024
1 parent c5bf71d commit 13357ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ async function captureElement() {
const canvas = await html2canvas(contentToCapture.value, {
useCORS: true, // 如果有跨域资源,设置为true
backgroundColor: '#fff', // 设置背景颜色,默认为白色
scale: 5
scale: 10
// 可以根据需要添加更多配置选项
});
// 将canvas转为图片URL
Expand All @@ -456,7 +456,7 @@ const generateImg = async () => {
const canvas = await html2canvas(contentToCapture.value, {
useCORS: true, // 如果有跨域资源,设置为true
backgroundColor: '#fff', // 设置背景颜色,默认为白色
scale: 5
scale: 10
// 可以根据需要添加更多配置选项
});
// 将canvas转为图片URL
Expand All @@ -481,7 +481,7 @@ async function copyImg() {
const canvas = await html2canvas(contentToCapture.value, {
useCORS: true, // 如果有跨域资源,设置为true
backgroundColor: '#fff', // 设置背景颜色,默认为白色
scale: 5
scale: 10
// 可以根据需要添加更多配置选项
});
// 将canvas转为图片URL
Expand Down

0 comments on commit 13357ac

Please sign in to comment.