<span @click="toImage()">导出图片</span>
<!-- 需要截图的区域 -->
<div class="imageBox">
....
</div>
import html2canvas from 'html2canvas'
<span @click="toImage()">导出图片</span>
<!-- 需要截图的区域 -->
<div class="imageBox">
....
</div>
import html2canvas from 'html2canvas'