浏览代码

remove useless code

hare8999@163.com 2 年之前
父节点
当前提交
79af14f71d
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      public/collectImg/index.html

+ 1 - 8
public/collectImg/index.html

@@ -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()