Explorar o código

editer:feat:下载图片

haojianlong %!s(int64=4) %!d(string=hai) anos
pai
achega
f0d4016848
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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");