|
@@ -161,7 +161,7 @@
|
|
|
// 每次重置容器高度
|
|
|
qs.style.height = 'auto'
|
|
|
const canvasContainer = []
|
|
|
- await this.findAllEle(canvasContainer, qs)
|
|
|
+ // await this.findAllEle(canvasContainer, qs) // 原来是为了处理图片跨域问题的无效代码
|
|
|
if (canvasContainer.length === 0) {
|
|
|
const { width, height } = qs.getBoundingClientRect()
|
|
|
const topCanvas = await html2canvas(qs, {
|
|
@@ -274,13 +274,6 @@
|
|
|
console.log('canvas download begin', new Date().getTime(), this.data?.questionId)
|
|
|
this.downLoad(str, canvasContainer[0]) // at least contains 1 element
|
|
|
})
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.downLoad(str)
|
|
|
- // const canvasContainer = await this.waitingLoaingImg()
|
|
|
- // this.downLoad(str, canvasContainer[0]) // at least contains 1 element
|
|
|
- // })
|
|
|
- // }, 1000)
|
|
|
} else {
|
|
|
this.time = setInterval(() => {
|
|
|
this.MathQueueTitle()
|