瀏覽代碼

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");