html2canvas(this.$refs.editbox, {
useCORS: true,
allowTaint: true,
dpi: 300, //此为像素 设此就不模糊 数据越高像素越高
// scale: this.ratio / this.scaleRadio, // 这里和缩放条关联起来,fix缩放后导致截图bug
width: this.wrapwidth * this.scaleRadio, // 这里和缩放条关联起来,fix缩放后导致截图bug
height: this.wrapheight * this.scaleRadio // 这里和缩放条关联起来,fix缩放后导致截图bug
}).then((canvas) => {
const dataURL = canvas.toDataURL('image/png')
this.dataURL = dataURL
console.log(dataURL)
this.isBase64Screnn = false
resolve(dataURL)
})