소스 검색

editer:feat:下载图片

haojianlong 4 년 전
부모
커밋
f0d4016848
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/components/editview/baseTopoEditer.vue

+ 1 - 3
src/components/editview/baseTopoEditer.vue

@@ -176,9 +176,7 @@ export default {
       bus.$on("saveTopoImg", () => {
         // 隐藏选择器
         this.scene.selectContainer.clear();
-        setTimeout(() => {
-          this.view.saveImageSize(`${this.topoContent.name}.png`, "png", this.canvasWidth, this.canvasHeight);
-        }, 80);
+        this.view.saveImageSize(`${this.topoContent.name}.png`, "png", this.canvasWidth, this.canvasHeight);
       });
       // 发布图片
       bus.$off("issueTopo");